X86 floating-point passes don't modify the CFG.
authorDan Gohman <gohman@apple.com>
Sat, 1 Aug 2009 00:26:16 +0000 (00:26 +0000)
committerDan Gohman <gohman@apple.com>
Sat, 1 Aug 2009 00:26:16 +0000 (00:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77757 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86FloatingPoint.cpp
lib/Target/X86/X86FloatingPointRegKill.cpp

index 14bffdc7999b19be20d57187fefa7290f8fe4dde..5fa7b82299de8edf7790b30f297e6fab0fd7e88b 100644 (file)
@@ -57,6 +57,7 @@ namespace {
     FPS() : MachineFunctionPass(&ID) {}
 
     virtual void getAnalysisUsage(AnalysisUsage &AU) const {
+      AU.setPreservesCFG();
       AU.addPreservedID(MachineLoopInfoID);
       AU.addPreservedID(MachineDominatorsID);
       MachineFunctionPass::getAnalysisUsage(AU);
index 009846e2e0b5c2917bbc511f76f7f1b235c31244..292f8f432d6193a547f339cf0b04fa8b016432c1 100644 (file)
@@ -35,6 +35,7 @@ namespace {
     FPRegKiller() : MachineFunctionPass(&ID) {}
 
     virtual void getAnalysisUsage(AnalysisUsage &AU) const {
+      AU.setPreservesCFG();
       AU.addPreservedID(MachineLoopInfoID);
       AU.addPreservedID(MachineDominatorsID);
       MachineFunctionPass::getAnalysisUsage(AU);