Name Date Size #Lines LOC

..--

AsmPrinter/H25-Apr-2025-26,99018,116

GlobalISel/H25-Apr-2025-28,47221,356

LiveDebugValues/H25-Apr-2025-8,2595,033

MIRParser/H25-Apr-2025-5,7514,879

SelectionDAG/H25-Apr-2025-105,29375,931

AggressiveAntiDepBreaker.cppH A D25-Apr-202536.3 KiB998673

AggressiveAntiDepBreaker.hH A D25-Apr-20256.8 KiB18487

AllocationOrder.cppH A D25-Apr-20252 KiB5433

AllocationOrder.hH A D25-Apr-20254.3 KiB12569

Analysis.cppH A D25-Apr-202532.9 KiB820510

AssignmentTrackingAnalysis.cppH A D25-Apr-202594.1 KiB2,4271,513

AtomicExpandPass.cppH A D25-Apr-202577.2 KiB1,9701,374

BasicBlockSections.cppH A D25-Apr-202517 KiB401191

BasicBlockSectionsProfileReader.cppH A D25-Apr-20255.4 KiB14591

BasicTargetTransformInfo.cppH A D25-Apr-20251.5 KiB3513

BranchFolding.cppH A D25-Apr-202577.7 KiB2,0381,345

BranchFolding.hH A D25-Apr-20257.3 KiB201121

BranchRelaxation.cppH A D25-Apr-202521.8 KiB625360

BreakFalseDeps.cppH A D25-Apr-202510.1 KiB300179

CFGuardLongjmp.cppH A D25-Apr-20253.7 KiB12166

CFIFixup.cppH A D25-Apr-20258.8 KiB226118

CFIInstrInserter.cppH A D25-Apr-202517.9 KiB449328

CMakeLists.txtH A D25-Apr-20256.4 KiB278267

CalcSpillWeights.cppH A D25-Apr-202511.2 KiB324217

CallingConvLower.cppH A D25-Apr-202510.8 KiB290216

CodeGen.cppH A D25-Apr-20256.3 KiB147129

CodeGenCommonISel.cppH A D25-Apr-20259.8 KiB288176

CodeGenPassBuilder.cppH A D25-Apr-20251,001 2610

CodeGenPrepare.cppH A D25-Apr-2025321.4 KiB8,5775,330

CommandFlags.cppH A D25-Apr-202528.6 KiB719590

ComplexDeinterleavingPass.cppH A D25-Apr-202529.4 KiB890650

CriticalAntiDepBreaker.cppH A D25-Apr-202527.6 KiB706405

CriticalAntiDepBreaker.hH A D25-Apr-20254.2 KiB11358

DFAPacketizer.cppH A D25-Apr-202510.9 KiB319216

DeadMachineInstructionElim.cppH A D25-Apr-20254.9 KiB15498

DetectDeadLanes.cppH A D25-Apr-202520.6 KiB602444

DwarfEHPrepare.cppH A D25-Apr-202512.4 KiB381282

EHContGuardCatchret.cppH A D25-Apr-20252.5 KiB8345

EarlyIfConversion.cppH A D25-Apr-202543 KiB1,213814

EdgeBundles.cppH A D25-Apr-20253.1 KiB10269

ExecutionDomainFix.cppH A D25-Apr-202514.7 KiB471343

ExpandLargeDivRem.cppH A D25-Apr-20254.3 KiB140100

ExpandLargeFpConvert.cppH A D25-Apr-202526 KiB665433

ExpandMemCmp.cppH A D25-Apr-202535.7 KiB923614

ExpandPostRAPseudos.cppH A D25-Apr-20257.4 KiB227156

ExpandReductions.cppH A D25-Apr-20256.8 KiB213178

ExpandVectorPredication.cppH A D25-Apr-202524.7 KiB721524

FEntryInserter.cppH A D25-Apr-20251.7 KiB5132

FaultMaps.cppH A D25-Apr-20253.8 KiB11578

FinalizeISel.cppH A D25-Apr-20252.6 KiB7646

FixupStatepointCallerSaved.cppH A D25-Apr-202522.4 KiB629433

FuncletLayout.cppH A D25-Apr-20252.2 KiB6339

GCMetadata.cppH A D25-Apr-20254.3 KiB15199

GCMetadataPrinter.cppH A D25-Apr-2025748 225

GCRootLowering.cppH A D25-Apr-202511.4 KiB329207

GlobalMerge.cppH A D25-Apr-202525.1 KiB699409

HardwareLoops.cppH A D25-Apr-202519.3 KiB544385

IfConversion.cppH A D25-Apr-202589.8 KiB2,3761,597

ImplicitNullChecks.cppH A D25-Apr-202529.1 KiB821472

IndirectBrExpandPass.cppH A D25-Apr-20259.7 KiB271170

InlineSpiller.cppH A D25-Apr-202562.5 KiB1,6491,081

InterferenceCache.cppH A D25-Apr-20258.7 KiB258197

InterferenceCache.hH A D25-Apr-20257.2 KiB243125

InterleavedAccessPass.cppH A D25-Apr-202519.7 KiB549327

InterleavedLoadCombinePass.cppH A D25-Apr-202542.2 KiB1,362710

IntrinsicLowering.cppH A D25-Apr-202517.1 KiB475400

JMCInstrumenter.cppH A D25-Apr-20259 KiB234166

LLVMTargetMachine.cppH A D25-Apr-202511.4 KiB301218

LatencyPriorityQueue.cppH A D25-Apr-20255.4 KiB14885

LazyMachineBlockFrequencyInfo.cppH A D25-Apr-20253.4 KiB9966

LexicalScopes.cppH A D25-Apr-202512.2 KiB348245

LiveDebugVariables.cppH A D25-Apr-202573.7 KiB1,9711,333

LiveDebugVariables.hH A D25-Apr-20252.3 KiB6929

LiveInterval.cppH A D25-Apr-202546.2 KiB1,410950

LiveIntervalCalc.cppH A D25-Apr-20257.4 KiB197130

LiveIntervalUnion.cppH A D25-Apr-20256.7 KiB216140

LiveIntervals.cppH A D25-Apr-202565.9 KiB1,7561,233

LivePhysRegs.cppH A D25-Apr-202511.1 KiB346245

LiveRangeCalc.cppH A D25-Apr-202515.6 KiB452318

LiveRangeEdit.cppH A D25-Apr-202518.1 KiB507357

LiveRangeShrink.cppH A D25-Apr-20258.7 KiB246164

LiveRangeUtils.hH A D25-Apr-20252.1 KiB6236

LiveRegMatrix.cppH A D25-Apr-20258.7 KiB249177

LiveRegUnits.cppH A D25-Apr-20255.2 KiB160111

LiveStacks.cppH A D25-Apr-20252.8 KiB8657

LiveVariables.cppH A D25-Apr-202532 KiB905612

LocalStackSlotAllocation.cppH A D25-Apr-202517 KiB443264

LoopTraversal.cppH A D25-Apr-20252.9 KiB7652

LowLevelType.cppH A D25-Apr-20252.6 KiB8659

LowerEmuTLS.cppH A D25-Apr-20255.7 KiB159110

MBFIWrapper.cppH A D25-Apr-20252 KiB6335

MIRCanonicalizerPass.cppH A D25-Apr-202512 KiB424299

MIRFSDiscriminator.cppH A D25-Apr-20255.3 KiB143103

MIRNamerPass.cppH A D25-Apr-20252 KiB7640

MIRPrinter.cppH A D25-Apr-202534.1 KiB970826

MIRPrintingPass.cppH A D25-Apr-20252 KiB7141

MIRSampleProfile.cppH A D25-Apr-202512.7 KiB354279

MIRVRegNamerUtils.cppH A D25-Apr-20256.6 KiB175128

MIRVRegNamerUtils.hH A D25-Apr-20253.3 KiB9840

MIRYamlMapping.cppH A D25-Apr-20251.6 KiB4426

MLRegallocEvictAdvisor.cppH A D25-Apr-202547.5 KiB1,144846

MLRegallocEvictAdvisor.hH A D25-Apr-20254.4 KiB9438

MLRegallocPriorityAdvisor.cppH A D25-Apr-202511.6 KiB336247

MachineBasicBlock.cppH A D25-Apr-202556.3 KiB1,6661,208

MachineBlockFrequencyInfo.cppH A D25-Apr-202510.4 KiB292220

MachineBlockPlacement.cppH A D25-Apr-2025147 KiB3,7032,149

MachineBranchProbabilityInfo.cppH A D25-Apr-20252.9 KiB8052

MachineCFGPrinter.cppH A D25-Apr-20253 KiB9660

MachineCSE.cppH A D25-Apr-202534.3 KiB952663

MachineCheckDebugify.cppH A D25-Apr-20254.1 KiB12790

MachineCombiner.cppH A D25-Apr-202531.8 KiB764526

MachineCopyPropagation.cppH A D25-Apr-202535.9 KiB1,033669

MachineCycleAnalysis.cppH A D25-Apr-20255.1 KiB152102

MachineDebugify.cppH A D25-Apr-20257.9 KiB208139

MachineDominanceFrontier.cppH A D25-Apr-20251.8 KiB5435

MachineDominators.cppH A D25-Apr-20254.9 KiB15393

MachineFrameInfo.cppH A D25-Apr-20259.8 KiB257188

MachineFunction.cppH A D25-Apr-202552.5 KiB1,4961,060

MachineFunctionPass.cppH A D25-Apr-20257.4 KiB189143

MachineFunctionPrinterPass.cppH A D25-Apr-20252.3 KiB7242

MachineFunctionSplitter.cppH A D25-Apr-20259.2 KiB257163

MachineInstr.cppH A D25-Apr-202582.4 KiB2,3811,793

MachineInstrBundle.cppH A D25-Apr-202511.4 KiB363278

MachineLICM.cppH A D25-Apr-202553.8 KiB1,520991

MachineLateInstrsCleanup.cppH A D25-Apr-20258.3 KiB240170

MachineLoopInfo.cppH A D25-Apr-20257.1 KiB215150

MachineLoopUtils.cppH A D25-Apr-20255 KiB135107

MachineModuleInfo.cppH A D25-Apr-20257.9 KiB245188

MachineModuleInfoImpls.cppH A D25-Apr-20251.5 KiB4419

MachineModuleSlotTracker.cppH A D25-Apr-20253 KiB8164

MachineOperand.cppH A D25-Apr-202543.1 KiB1,2631,073

MachineOptimizationRemarkEmitter.cppH A D25-Apr-20253.3 KiB9865

MachineOutliner.cppH A D25-Apr-202542.5 KiB1,094581

MachinePassManager.cppH A D25-Apr-20253.6 KiB10962

MachinePipeliner.cppH A D25-Apr-2025115.8 KiB3,2852,538

MachinePostDominators.cppH A D25-Apr-20252.4 KiB8048

MachineRegionInfo.cppH A D25-Apr-20254.8 KiB15091

MachineRegisterInfo.cppH A D25-Apr-202523.2 KiB676496

MachineSSAContext.cppH A D25-Apr-20252.6 KiB8758

MachineSSAUpdater.cppH A D25-Apr-202513.5 KiB374234

MachineScheduler.cppH A D25-Apr-2025144.9 KiB3,9812,776

MachineSink.cppH A D25-Apr-202569.8 KiB1,8981,222

MachineSizeOpts.cppH A D25-Apr-20258.8 KiB211175

MachineStableHash.cppH A D25-Apr-20259.8 KiB237195

MachineStripDebug.cppH A D25-Apr-20253.7 KiB10977

MachineTraceMetrics.cppH A D25-Apr-202549.4 KiB1,351967

MachineUniformityAnalysis.cppH A D25-Apr-20257.2 KiB224178

MachineVerifier.cppH A D25-Apr-2025125 KiB3,4532,688

MacroFusion.cppH A D25-Apr-20257.5 KiB214135

ModuloSchedule.cppH A D25-Apr-202585.3 KiB2,2141,629

MultiHazardRecognizer.cppH A D25-Apr-20252.7 KiB9366

NonRelocatableStringpool.cppH A D25-Apr-20251.7 KiB5639

OptimizePHIs.cppH A D25-Apr-20256.5 KiB207134

PHIElimination.cppH A D25-Apr-202529.6 KiB760497

PHIEliminationUtils.cppH A D25-Apr-20252.5 KiB6532

PHIEliminationUtils.hH A D25-Apr-2025972 259

ParallelCG.cppH A D25-Apr-20253.7 KiB9864

PatchableFunction.cppH A D25-Apr-20253.6 KiB9962

PeepholeOptimizer.cppH A D25-Apr-202578.5 KiB2,1291,185

PostRAHazardRecognizer.cppH A D25-Apr-20253.4 KiB9749

PostRASchedulerList.cppH A D25-Apr-202524.1 KiB697441

PreISelIntrinsicLowering.cppH A D25-Apr-20258.6 KiB256199

ProcessImplicitDefs.cppH A D25-Apr-20255.3 KiB169119

PrologEpilogInserter.cppH A D25-Apr-202560.9 KiB1,6041,025

PseudoProbeInserter.cppH A D25-Apr-20255.8 KiB154101

PseudoSourceValue.cppH A D25-Apr-20254.6 KiB147108

RDFGraph.cppH A D25-Apr-202557.8 KiB1,8221,321

RDFLiveness.cppH A D25-Apr-202542.2 KiB1,170759

RDFRegisters.cppH A D25-Apr-202511.3 KiB382304

README.txtH A D25-Apr-20256.2 KiB200149

ReachingDefAnalysis.cppH A D25-Apr-202523.6 KiB714548

RegAllocBase.cppH A D25-Apr-20257 KiB193133

RegAllocBase.hH A D25-Apr-20254.9 KiB13248

RegAllocBasic.cppH A D25-Apr-202511.6 KiB340217

RegAllocEvictionAdvisor.cppH A D25-Apr-202512.2 KiB312208

RegAllocEvictionAdvisor.hH A D25-Apr-20258.5 KiB224112

RegAllocFast.cppH A D25-Apr-202554.6 KiB1,6201,194

RegAllocGreedy.cppH A D25-Apr-202599.5 KiB2,6741,768

RegAllocGreedy.hH A D25-Apr-202515.2 KiB448308

RegAllocPBQP.cppH A D25-Apr-202533.6 KiB955663

RegAllocPriorityAdvisor.cppH A D25-Apr-20254.3 KiB11592

RegAllocPriorityAdvisor.hH A D25-Apr-20253.1 KiB9760

RegAllocScore.cppH A D25-Apr-20254.6 KiB12297

RegAllocScore.hH A D25-Apr-20252.9 KiB7443

RegUsageInfoCollector.cppH A D25-Apr-20257.3 KiB216134

RegUsageInfoPropagate.cppH A D25-Apr-20255 KiB155107

RegisterBank.cppH A D25-Apr-20253.9 KiB11171

RegisterBankInfo.cppH A D25-Apr-202530.2 KiB810616

RegisterClassInfo.cppH A D25-Apr-20258 KiB237163

RegisterCoalescer.cppH A D25-Apr-2025161 KiB4,2212,548

RegisterCoalescer.hH A D25-Apr-20254.1 KiB11537

RegisterPressure.cppH A D25-Apr-202548.9 KiB1,3951,070

RegisterScavenging.cppH A D25-Apr-202528.2 KiB830601

RegisterUsageInfo.cppH A D25-Apr-20253.1 KiB10068

RemoveRedundantDebugValues.cppH A D25-Apr-20257.3 KiB228129

RenameIndependentSubregs.cppH A D25-Apr-202514.8 KiB406279

ReplaceWithVeclib.cppH A D25-Apr-20259.1 KiB254166

ResetMachineFunctionPass.cppH A D25-Apr-20253.5 KiB9360

SafeStack.cppH A D25-Apr-202534.8 KiB940656

SafeStackLayout.cppH A D25-Apr-20255.2 KiB153117

SafeStackLayout.hH A D25-Apr-20252.4 KiB8544

SanitizerBinaryMetadata.cppH A D25-Apr-20252.9 KiB8157

ScheduleDAG.cppH A D25-Apr-202521.3 KiB751599

ScheduleDAGInstrs.cppH A D25-Apr-202554.4 KiB1,5341,036

ScheduleDAGPrinter.cppH A D25-Apr-20253 KiB9360

ScoreboardHazardRecognizer.cppH A D25-Apr-20257.9 KiB242164

SelectOptimize.cppH A D25-Apr-202541.8 KiB1,046706

ShadowStackGCLowering.cppH A D25-Apr-202514.7 KiB387240

ShrinkWrap.cppH A D25-Apr-202523.4 KiB620369

SjLjEHPrepare.cppH A D25-Apr-202519 KiB508341

SlotIndexes.cppH A D25-Apr-20259 KiB273183

SpillPlacement.cppH A D25-Apr-202512.8 KiB399246

SpillPlacement.hH A D25-Apr-20256.7 KiB17366

SplitKit.cppH A D25-Apr-202567.9 KiB1,8891,295

SplitKit.hH A D25-Apr-202523.2 KiB558206

StackColoring.cppH A D25-Apr-202550.7 KiB1,379711

StackFrameLayoutAnalysisPass.cppH A D25-Apr-20258.7 KiB254160

StackMapLivenessAnalysis.cppH A D25-Apr-20256.1 KiB172101

StackMaps.cppH A D25-Apr-202525.6 KiB758552

StackProtector.cppH A D25-Apr-202524.4 KiB636418

StackSlotColoring.cppH A D25-Apr-202516.6 KiB524368

SwiftErrorValueTracking.cppH A D25-Apr-202511.3 KiB312213

SwitchLoweringUtils.cppH A D25-Apr-202518.4 KiB495349

TailDuplication.cppH A D25-Apr-20253.3 KiB10371

TailDuplicator.cppH A D25-Apr-202539.3 KiB1,071727

TargetFrameLoweringImpl.cppH A D25-Apr-20256.7 KiB180114

TargetInstrInfo.cppH A D25-Apr-202558.1 KiB1,5701,096

TargetLoweringBase.cppH A D25-Apr-202588.3 KiB2,3731,761

TargetLoweringObjectFileImpl.cppH A D25-Apr-2025100.1 KiB2,6591,979

TargetOptionsImpl.cppH A D25-Apr-20252.3 KiB5729

TargetPassConfig.cppH A D25-Apr-202559.5 KiB1,557980

TargetRegisterInfo.cppH A D25-Apr-202523.6 KiB679500

TargetSchedule.cppH A D25-Apr-202512.7 KiB344247

TargetSubtargetInfo.cppH A D25-Apr-20251.8 KiB6136

TwoAddressInstructionPass.cppH A D25-Apr-202570.5 KiB1,9691,335

TypePromotion.cppH A D25-Apr-202534.3 KiB1,049667

UnreachableBlockElim.cppH A D25-Apr-20257.1 KiB202140

VLIWMachineScheduler.cppH A D25-Apr-202534 KiB1,008730

ValueTypes.cppH A D25-Apr-202523.6 KiB610559

VirtRegMap.cppH A D25-Apr-202523 KiB649453

WasmEHPrepare.cppH A D25-Apr-202514.1 KiB371198

WinEHPrepare.cppH A D25-Apr-202550.5 KiB1,257868

XRayInstrumentation.cppH A D25-Apr-20259.6 KiB269186

README.txt

1//===---------------------------------------------------------------------===//
2
3Common register allocation / spilling problem:
4
5        mul lr, r4, lr
6        str lr, [sp, #+52]
7        ldr lr, [r1, #+32]
8        sxth r3, r3
9        ldr r4, [sp, #+52]
10        mla r4, r3, lr, r4
11
12can be:
13
14        mul lr, r4, lr
15        mov r4, lr
16        str lr, [sp, #+52]
17        ldr lr, [r1, #+32]
18        sxth r3, r3
19        mla r4, r3, lr, r4
20
21and then "merge" mul and mov:
22
23        mul r4, r4, lr
24        str r4, [sp, #+52]
25        ldr lr, [r1, #+32]
26        sxth r3, r3
27        mla r4, r3, lr, r4
28
29It also increase the likelihood the store may become dead.
30
31//===---------------------------------------------------------------------===//
32
33bb27 ...
34        ...
35        %reg1037 = ADDri %reg1039, 1
36        %reg1038 = ADDrs %reg1032, %reg1039, %noreg, 10
37    Successors according to CFG: 0x8b03bf0 (#5)
38
39bb76 (0x8b03bf0, LLVM BB @0x8b032d0, ID#5):
40    Predecessors according to CFG: 0x8b0c5f0 (#3) 0x8b0a7c0 (#4)
41        %reg1039 = PHI %reg1070, mbb<bb76.outer,0x8b0c5f0>, %reg1037, mbb<bb27,0x8b0a7c0>
42
43Note ADDri is not a two-address instruction. However, its result %reg1037 is an
44operand of the PHI node in bb76 and its operand %reg1039 is the result of the
45PHI node. We should treat it as a two-address code and make sure the ADDri is
46scheduled after any node that reads %reg1039.
47
48//===---------------------------------------------------------------------===//
49
50Use local info (i.e. register scavenger) to assign it a free register to allow
51reuse:
52        ldr r3, [sp, #+4]
53        add r3, r3, #3
54        ldr r2, [sp, #+8]
55        add r2, r2, #2
56        ldr r1, [sp, #+4]  <==
57        add r1, r1, #1
58        ldr r0, [sp, #+4]
59        add r0, r0, #2
60
61//===---------------------------------------------------------------------===//
62
63LLVM aggressively lift CSE out of loop. Sometimes this can be negative side-
64effects:
65
66R1 = X + 4
67R2 = X + 7
68R3 = X + 15
69
70loop:
71load [i + R1]
72...
73load [i + R2]
74...
75load [i + R3]
76
77Suppose there is high register pressure, R1, R2, R3, can be spilled. We need
78to implement proper re-materialization to handle this:
79
80R1 = X + 4
81R2 = X + 7
82R3 = X + 15
83
84loop:
85R1 = X + 4  @ re-materialized
86load [i + R1]
87...
88R2 = X + 7 @ re-materialized
89load [i + R2]
90...
91R3 = X + 15 @ re-materialized
92load [i + R3]
93
94Furthermore, with re-association, we can enable sharing:
95
96R1 = X + 4
97R2 = X + 7
98R3 = X + 15
99
100loop:
101T = i + X
102load [T + 4]
103...
104load [T + 7]
105...
106load [T + 15]
107//===---------------------------------------------------------------------===//
108
109It's not always a good idea to choose rematerialization over spilling. If all
110the load / store instructions would be folded then spilling is cheaper because
111it won't require new live intervals / registers. See 2003-05-31-LongShifts for
112an example.
113
114//===---------------------------------------------------------------------===//
115
116With a copying garbage collector, derived pointers must not be retained across
117collector safe points; the collector could move the objects and invalidate the
118derived pointer. This is bad enough in the first place, but safe points can
119crop up unpredictably. Consider:
120
121        %array = load { i32, [0 x %obj] }** %array_addr
122        %nth_el = getelementptr { i32, [0 x %obj] }* %array, i32 0, i32 %n
123        %old = load %obj** %nth_el
124        %z = div i64 %x, %y
125        store %obj* %new, %obj** %nth_el
126
127If the i64 division is lowered to a libcall, then a safe point will (must)
128appear for the call site. If a collection occurs, %array and %nth_el no longer
129point into the correct object.
130
131The fix for this is to copy address calculations so that dependent pointers
132are never live across safe point boundaries. But the loads cannot be copied
133like this if there was an intervening store, so may be hard to get right.
134
135Only a concurrent mutator can trigger a collection at the libcall safe point.
136So single-threaded programs do not have this requirement, even with a copying
137collector. Still, LLVM optimizations would probably undo a front-end's careful
138work.
139
140//===---------------------------------------------------------------------===//
141
142The ocaml frametable structure supports liveness information. It would be good
143to support it.
144
145//===---------------------------------------------------------------------===//
146
147The FIXME in ComputeCommonTailLength in BranchFolding.cpp needs to be
148revisited. The check is there to work around a misuse of directives in inline
149assembly.
150
151//===---------------------------------------------------------------------===//
152
153It would be good to detect collector/target compatibility instead of silently
154doing the wrong thing.
155
156//===---------------------------------------------------------------------===//
157
158It would be really nice to be able to write patterns in .td files for copies,
159which would eliminate a bunch of explicit predicates on them (e.g. no side
160effects).  Once this is in place, it would be even better to have tblgen
161synthesize the various copy insertion/inspection methods in TargetInstrInfo.
162
163//===---------------------------------------------------------------------===//
164
165Stack coloring improvements:
166
1671. Do proper LiveStacks analysis on all stack objects including those which are
168   not spill slots.
1692. Reorder objects to fill in gaps between objects.
170   e.g. 4, 1, <gap>, 4, 1, 1, 1, <gap>, 4 => 4, 1, 1, 1, 1, 4, 4
171
172//===---------------------------------------------------------------------===//
173
174The scheduler should be able to sort nearby instructions by their address. For
175example, in an expanded memset sequence it's not uncommon to see code like this:
176
177  movl $0, 4(%rdi)
178  movl $0, 8(%rdi)
179  movl $0, 12(%rdi)
180  movl $0, 0(%rdi)
181
182Each of the stores is independent, and the scheduler is currently making an
183arbitrary decision about the order.
184
185//===---------------------------------------------------------------------===//
186
187Another opportunitiy in this code is that the $0 could be moved to a register:
188
189  movl $0, 4(%rdi)
190  movl $0, 8(%rdi)
191  movl $0, 12(%rdi)
192  movl $0, 0(%rdi)
193
194This would save substantial code size, especially for longer sequences like
195this. It would be easy to have a rule telling isel to avoid matching MOV32mi
196if the immediate has more than some fixed number of uses. It's more involved
197to teach the register allocator how to do late folding to recover from
198excessive register pressure.
199
200