1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00
llvm-mirror/include/llvm/CodeGen
Florian Hahn dca509f5d0 [ScheduleDAGRRList] Recompute topological ordering on demand.
Currently there is a single point in ScheduleDAGRRList, where we
actually query the topological order (besides init code). Currently we
are recomputing the order after adding a node (which does not have
predecessors) and then we add predecessors edge-by-edge.

We can avoid adding edges one-by-one after we added a new node. In that case, we can
just rebuild the order from scratch after adding the edges to the DAG
and avoid all the updates to the ordering.

Also, we can delay updating the DAG until we query the DAG, if we keep a
list of added edges. Depending on the number of updates, we can either
apply them when needed or recompute the order from scratch.

This brings down the geomean compile time for of CTMark with -O1 down 0.3% on X86,
with no regressions.

Reviewers: MatzeB, atrick, efriedma, niravd, paquette

Reviewed By: efriedma

Differential Revision: https://reviews.llvm.org/D60125

llvm-svn: 358583
2019-04-17 15:05:29 +00:00
..
GlobalISel [GlobalISel] Introduce a CSEConfigBase class to allow targets to define their own CSE configs. 2019-04-15 04:53:46 +00:00
MIRParser MIR: Allow targets to serialize MachineFunctionInfo 2019-03-14 22:54:43 +00:00
PBQP Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
AccelTable.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Analysis.h GlobalISel: Move computeValueLLTs 2019-04-10 17:27:56 +00:00
AsmPrinter.h [AsmPrinter] refactor to remove remove AsmVariant. NFC 2019-04-10 16:38:43 +00:00
AsmPrinterHandler.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
AtomicExpandUtils.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
BasicTTIImpl.h [TTI] Enable analysis of clib functions in getIntrinsicCosts. NFCI. 2019-03-12 09:48:02 +00:00
BuiltinGCs.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CalcSpillWeights.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CallingConvLower.h [CallingConvLower] Use SmallVectorImpl::swap 2019-04-13 15:58:48 +00:00
CommandFlags.inc Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CostTable.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CSEConfigBase.h [GlobalISel] Introduce a CSEConfigBase class to allow targets to define their own CSE configs. 2019-04-15 04:53:46 +00:00
DAGCombine.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
DbgEntityHistoryCalculator.h [DebugInfo] Track multiple registers in DbgEntityHistoryCalculator 2019-04-10 11:28:28 +00:00
DebugHandlerBase.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
DFAPacketizer.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
DIE.h [DebugInfo] Introduce DW_OP_LLVM_convert 2019-03-19 13:16:28 +00:00
DIEValue.def [DebugInfo] Introduce DW_OP_LLVM_convert 2019-03-19 13:16:28 +00:00
DwarfStringPoolEntry.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
EdgeBundles.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ExecutionDomainFix.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ExpandReductions.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
FastISel.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
FaultMaps.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
FunctionLoweringInfo.h [SelectionDAGBuilder] Add restrictions to EmitFuncArgumentDbgValue 2019-02-11 19:23:30 +00:00
GCMetadata.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
GCMetadataPrinter.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
GCStrategy.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
IntrinsicLowering.h [opaque pointer types] Add a FunctionCallee wrapper type, and use it. 2019-02-01 02:28:03 +00:00
ISDOpcodes.h [SDAG][AArch64] Legalize VECREDUCE 2019-03-11 20:22:13 +00:00
LatencyPriorityQueue.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
LazyMachineBlockFrequencyInfo.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
LexicalScopes.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
LinkAllAsmWriterComponents.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
LinkAllCodegenComponents.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
LiveInterval.h [LiveRange] Reset the VNIs when splitting subranges 2019-03-26 21:27:15 +00:00
LiveIntervals.h LiveIntervals: Add removeAllRegUnitsForPhysReg 2019-02-22 19:03:31 +00:00
LiveIntervalUnion.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
LivePhysRegs.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
LiveRangeEdit.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
LiveRegMatrix.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
LiveRegUnits.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
LiveStacks.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
LiveVariables.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
LoopTraversal.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
LowLevelType.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
MachineBasicBlock.h [RISCV] Generate address sequences suitable for mcmodel=medium 2019-04-01 14:42:56 +00:00
MachineBlockFrequencyInfo.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
MachineBranchProbabilityInfo.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
MachineCombinerPattern.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
MachineConstantPool.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
MachineDominanceFrontier.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
MachineDominators.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
MachineFrameInfo.h Enforce StackID definition in PEI 2019-04-02 09:46:52 +00:00
MachineFunction.h Remove some more unused headers from MachineFunction.h and friends. 2019-04-16 01:06:03 +00:00
MachineFunctionPass.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
MachineInstr.h add FIXME: as per echristo 2019-04-10 16:38:44 +00:00
MachineInstrBuilder.h [RISCV] Implement adding a displacement to a BlockAddress 2019-04-05 08:40:57 +00:00
MachineInstrBundle.h Fix misspelled filenames in file headers of llvm/{MC,Object,CodeGen}/*.h 2019-02-06 08:02:46 +00:00
MachineInstrBundleIterator.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
MachineJumpTableInfo.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
MachineLoopInfo.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
MachineMemOperand.h Remove some more unused headers from MachineFunction.h and friends. 2019-04-16 01:06:03 +00:00
MachineModuleInfo.h MIR: Allow targets to serialize MachineFunctionInfo 2019-03-14 22:54:43 +00:00
MachineModuleInfoImpls.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
MachineOperand.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
MachineOptimizationRemarkEmitter.h Reland "[Remarks] Refactor remark diagnostic emission in a RemarkStreamer" 2019-03-06 15:20:13 +00:00
MachineOutliner.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
MachinePassRegistry.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
MachinePipeliner.h [Pipeliner] Add two pragmas to control software pipelining optimization 2019-01-23 03:26:10 +00:00
MachinePostDominators.h Fix misspelled filenames in file headers of llvm/{MC,Object,CodeGen}/*.h 2019-02-06 08:02:46 +00:00
MachineRegionInfo.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
MachineRegisterInfo.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
MachineScheduler.h [ScheduleDAG] Move Topo and addEdge to base class. 2019-03-29 08:33:05 +00:00
MachineSSAUpdater.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
MachineTraceMetrics.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
MachORelocation.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
MacroFusion.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
MIRPrinter.h Fix missing C++ mode comments 2019-03-12 20:42:14 +00:00
MIRYamlMapping.h MIR: Allow targets to serialize MachineFunctionInfo 2019-03-14 22:54:43 +00:00
ParallelCG.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Passes.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
PBQPRAConstraint.h Fix misspelled filenames in file headers of llvm/{MC,Object,CodeGen}/*.h 2019-02-06 08:02:46 +00:00
PreISelIntrinsicLowering.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
PseudoSourceValue.h Remove some more unused headers from MachineFunction.h and friends. 2019-04-16 01:06:03 +00:00
ReachingDefAnalysis.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
RegAllocPBQP.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
RegAllocRegistry.h CodeGen: Make RegAllocRegistry a template class 2019-02-22 19:16:52 +00:00
RegisterClassInfo.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
RegisterPressure.h Replace llvm::isPodLike<...> by llvm::is_trivially_copyable<...> 2019-01-20 21:19:56 +00:00
RegisterScavenging.h RegisterScavenger: Allow fail without spill 2019-02-25 20:29:04 +00:00
RegisterUsageInfo.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ResourcePriorityQueue.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
RuntimeLibcalls.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ScheduleDAG.h [ScheduleDAGRRList] Recompute topological ordering on demand. 2019-04-17 15:05:29 +00:00
ScheduleDAGInstrs.h [ScheduleDAG] Move Topo and addEdge to base class. 2019-03-29 08:33:05 +00:00
ScheduleDAGMutation.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ScheduleDFS.h Fix misspelled filenames in file headers of llvm/{MC,Object,CodeGen}/*.h 2019-02-06 08:02:46 +00:00
ScheduleHazardRecognizer.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
SchedulerRegistry.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ScoreboardHazardRecognizer.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
SDNodeProperties.td Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
SelectionDAG.h [DAG] Set up infrastructure to avoid smart constructor-based dangling nodes 2019-03-29 17:26:40 +00:00
SelectionDAGAddressAnalysis.h [DAGCombiner] Unify Lifetime and memory Op aliasing. 2019-03-27 14:14:46 +00:00
SelectionDAGISel.h Recommit r355224 "[TableGen][SelectionDAG][X86] Add specific isel matchers for immAllZerosV/immAllOnesV. Remove bitcasts from X86 patterns that are no longer necessary." 2019-03-10 05:21:52 +00:00
SelectionDAGNodes.h [AIX] SelectionDAGNodes.h: Pack bit-fields that are meant to be packed 2019-04-04 00:33:57 +00:00
SelectionDAGTargetInfo.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
SlotIndexes.h Replace llvm::isPodLike<...> by llvm::is_trivially_copyable<...> 2019-01-20 21:19:56 +00:00
StackMaps.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
StackProtector.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
TailDuplicator.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
TargetCallingConv.h DAG: propagate whether an arg is a pointer for CallingConv decisions. 2019-04-15 12:03:54 +00:00
TargetFrameLowering.h [COFF, ARM64] Fix localaddress to handle stack realignment and variable size objects 2019-02-01 21:41:33 +00:00
TargetInstrInfo.h [AMDGPU] Fix DPP combiner 2019-02-08 11:59:48 +00:00
TargetLowering.h [TargetLowering] Rename preferShiftsToClearExtremeBits and shouldFoldShiftPairToMask (PR41359) 2019-04-16 20:57:28 +00:00
TargetLoweringObjectFileImpl.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
TargetOpcodes.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
TargetPassConfig.h [GlobalISel] Introduce a CSEConfigBase class to allow targets to define their own CSE configs. 2019-04-15 04:53:46 +00:00
TargetRegisterInfo.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
TargetSchedule.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
TargetSubtargetInfo.h [Subtarget] Merge ProcSched and ProcDesc arrays in MCSubtargetInfo into a single array. 2019-03-05 18:54:38 +00:00
UnreachableBlockElim.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ValueTypes.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ValueTypes.td [CodeGen] Defined MVTs v3i32, v3f32, v5i32, v5f32 2019-03-17 22:56:38 +00:00
VirtRegMap.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
WasmEHFuncInfo.h [WebAssembly] Delete ThrowUnwindDest map from WasmEHFuncInfo 2019-03-03 22:35:56 +00:00
WinEHFuncInfo.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00