[llvm-commits] [llvm] r149927 - in /llvm/trunk/lib/CodeGen: PrologEpilogInserter.cpp ShrinkWrapping.cpp
Andrew Trick
atrick at apple.com
Mon Feb 6 14:51:19 PST 2012
Author: atrick
Date: Mon Feb 6 16:51:18 2012
New Revision: 149927
URL: http://llvm.org/viewvc/llvm-project?rev=149927&view=rev
Log:
Expose TargetPassConfig to PEI Pass
Modified:
llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp
llvm/trunk/lib/CodeGen/ShrinkWrapping.cpp
Modified: llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp?rev=149927&r1=149926&r2=149927&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp (original)
+++ llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp Mon Feb 6 16:51:18 2012
@@ -50,6 +50,7 @@
"Prologue/Epilogue Insertion", false, false)
INITIALIZE_PASS_DEPENDENCY(MachineLoopInfo)
INITIALIZE_PASS_DEPENDENCY(MachineDominatorTree)
+INITIALIZE_PASS_DEPENDENCY(TargetPassConfig)
INITIALIZE_PASS_END(PEI, "prologepilog",
"Prologue/Epilogue Insertion", false, false)
Modified: llvm/trunk/lib/CodeGen/ShrinkWrapping.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/ShrinkWrapping.cpp?rev=149927&r1=149926&r2=149927&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/ShrinkWrapping.cpp (original)
+++ llvm/trunk/lib/CodeGen/ShrinkWrapping.cpp Mon Feb 6 16:51:18 2012
@@ -93,6 +93,7 @@
}
AU.addPreserved<MachineLoopInfo>();
AU.addPreserved<MachineDominatorTree>();
+ AU.addRequired<TargetPassConfig>();
MachineFunctionPass::getAnalysisUsage(AU);
}
More information about the llvm-commits
mailing list