[PATCH] D22718: MachineFunction: Remove AllVRegsAllocated property
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 22 20:05:43 PDT 2016
MatzeB created this revision.
MatzeB added reviewers: dschuff, qcolombet, hfinkel.
MatzeB added a subscriber: llvm-commits.
MatzeB set the repository for this revision to rL LLVM.
Herald added subscribers: nemanjai, mcrosier, dsanders, jyknight, jfb, qcolombet, MatzeB.
Originally I wanted to write some MIRParser code to automatically
determine the correct value for AllVRegsAllocated. Then I realized that
it is equivalent to MachineRegisterInfo::getNumVirtRegs() == 0 so there
is no need to track it in a separate property, we can just assert on the
presence of virtregs instead.
It still catches invalid pass usage, is less code and avoids a line in every .mir file.
Repository:
rL LLVM
https://reviews.llvm.org/D22718
Files:
include/llvm/CodeGen/MIRYamlMapping.h
include/llvm/CodeGen/MachineFunction.h
lib/CodeGen/ExecutionDepsFix.cpp
lib/CodeGen/FuncletLayout.cpp
lib/CodeGen/IfConversion.cpp
lib/CodeGen/ImplicitNullChecks.cpp
lib/CodeGen/LiveDebugValues.cpp
lib/CodeGen/MIRParser/MIRParser.cpp
lib/CodeGen/MIRPrinter.cpp
lib/CodeGen/MachineCopyPropagation.cpp
lib/CodeGen/MachineFunction.cpp
lib/CodeGen/MachineVerifier.cpp
lib/CodeGen/PatchableFunction.cpp
lib/CodeGen/PostRASchedulerList.cpp
lib/CodeGen/PrologEpilogInserter.cpp
lib/CodeGen/RegAllocFast.cpp
lib/CodeGen/StackMapLivenessAnalysis.cpp
lib/CodeGen/VirtRegMap.cpp
lib/Target/AArch64/AArch64A53Fix835769.cpp
lib/Target/AArch64/AArch64A57FPLoadBalancing.cpp
lib/Target/AArch64/AArch64CollectLOH.cpp
lib/Target/AArch64/AArch64DeadRegisterDefinitionsPass.cpp
lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
lib/Target/AArch64/AArch64RedundantCopyElimination.cpp
lib/Target/ARM/ARMConstantIslandPass.cpp
lib/Target/ARM/ARMExpandPseudoInsts.cpp
lib/Target/ARM/ARMLoadStoreOptimizer.cpp
lib/Target/ARM/ARMOptimizeBarriersPass.cpp
lib/Target/ARM/Thumb2ITBlockPass.cpp
lib/Target/ARM/Thumb2SizeReduction.cpp
lib/Target/Hexagon/HexagonCFGOptimizer.cpp
lib/Target/Hexagon/HexagonCopyToCombine.cpp
lib/Target/Hexagon/HexagonFixupHwLoops.cpp
lib/Target/Hexagon/HexagonFrameLowering.cpp
lib/Target/Hexagon/HexagonGenMux.cpp
lib/Target/Hexagon/HexagonNewValueJump.cpp
lib/Target/Hexagon/HexagonRDFOpt.cpp
lib/Target/Hexagon/HexagonSplitConst32AndConst64.cpp
lib/Target/Hexagon/HexagonVLIWPacketizer.cpp
lib/Target/Lanai/LanaiDelaySlotFiller.cpp
lib/Target/Lanai/LanaiMemAluCombiner.cpp
lib/Target/MSP430/MSP430BranchSelector.cpp
lib/Target/Mips/MipsConstantIslandPass.cpp
lib/Target/Mips/MipsDelaySlotFiller.cpp
lib/Target/Mips/MipsHazardSchedule.cpp
lib/Target/Mips/MipsLongBranch.cpp
lib/Target/PowerPC/PPCBranchSelector.cpp
lib/Target/PowerPC/PPCEarlyReturn.cpp
lib/Target/Sparc/DelaySlotFiller.cpp
lib/Target/SystemZ/SystemZElimCompare.cpp
lib/Target/SystemZ/SystemZLongBranch.cpp
lib/Target/SystemZ/SystemZShortenInst.cpp
lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
lib/Target/X86/X86ExpandPseudo.cpp
lib/Target/X86/X86FixupBWInsts.cpp
lib/Target/X86/X86FixupLEAs.cpp
lib/Target/X86/X86FloatingPoint.cpp
lib/Target/X86/X86PadShortFunction.cpp
lib/Target/X86/X86VZeroUpper.cpp
lib/Target/XCore/XCoreFrameToArgsOffsetElim.cpp
test/CodeGen/AArch64/movimm-wzr.mir
test/CodeGen/ARM/ARMLoadStoreDBG.mir
test/CodeGen/MIR/AArch64/machine-dead-copy.mir
test/CodeGen/MIR/ARM/sched-it-debug-nodes.mir
test/CodeGen/MIR/Hexagon/anti-dep-partial.mir
test/CodeGen/MIR/Lanai/peephole-compare.mir
test/CodeGen/PowerPC/aantidep-def-ec.mir
test/CodeGen/PowerPC/addisdtprelha-nonr3.mir
test/CodeGen/PowerPC/opt-sub-inst-cr0-live.mir
test/CodeGen/X86/eflags-copy-expansion.mir
test/CodeGen/X86/fixup-bw-copy.mir
test/CodeGen/X86/implicit-null-checks.mir
test/CodeGen/X86/machine-copy-prop.mir
test/CodeGen/X86/pr27681.mir
test/DebugInfo/MIR/X86/live-debug-values-3preds.mir
test/DebugInfo/MIR/X86/live-debug-values.mir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22718.65209.patch
Type: text/x-patch
Size: 62451 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160723/a7ff6ae3/attachment.bin>
More information about the llvm-commits
mailing list