[llvm-commits] CVS: llvm/lib/Transforms/Scalar/LoopUnswitch.cpp
Owen Anderson
resistor at mac.com
Fri Jun 9 11:40:44 PDT 2006
Changes in directory llvm/lib/Transforms/Scalar:
LoopUnswitch.cpp updated: 1.36 -> 1.37
---
Log message:
Add LCSSA as a requirement for LoopUnswitch, and assert that LoopUnswitch preserves
LCSSA.
---
Diffs of the changes: (+4 -0)
LoopUnswitch.cpp | 4 ++++
1 files changed, 4 insertions(+)
Index: llvm/lib/Transforms/Scalar/LoopUnswitch.cpp
diff -u llvm/lib/Transforms/Scalar/LoopUnswitch.cpp:1.36 llvm/lib/Transforms/Scalar/LoopUnswitch.cpp:1.37
--- llvm/lib/Transforms/Scalar/LoopUnswitch.cpp:1.36 Fri Mar 24 01:14:00 2006
+++ llvm/lib/Transforms/Scalar/LoopUnswitch.cpp Fri Jun 9 13:40:32 2006
@@ -73,6 +73,8 @@
AU.addPreservedID(LoopSimplifyID);
AU.addRequired<LoopInfo>();
AU.addPreserved<LoopInfo>();
+ AU.addRequiredID(LCSSAID);
+ AU.addPreservedID(LCSSAID);
}
private:
@@ -199,6 +201,8 @@
}
}
+ assert(L->isLCSSAForm());
+
return Changed;
}
More information about the llvm-commits
mailing list