summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2006-06-09 18:40:32 +0000
committerOwen Anderson <resistor@mac.com>2006-06-09 18:40:32 +0000
commitb1dc1d44f86d27562436c20a6168e46d2c87fa52 (patch)
treeaa1ec9910a621fdd50ad0ddeeeab91d58191ec84 /llvm/lib/Transforms
parent505adff3f02b5c93aace19b23276690e50d495ad (diff)
downloadbcm5719-llvm-b1dc1d44f86d27562436c20a6168e46d2c87fa52.tar.gz
bcm5719-llvm-b1dc1d44f86d27562436c20a6168e46d2c87fa52.zip
Add LCSSA as a requirement for LoopUnswitch, and assert that LoopUnswitch preserves
LCSSA. llvm-svn: 28739
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/LoopUnswitch.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp b/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp
index c583eea14d6..ab736c1de87 100644
--- a/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp
@@ -73,6 +73,8 @@ namespace {
AU.addPreservedID(LoopSimplifyID);
AU.addRequired<LoopInfo>();
AU.addPreserved<LoopInfo>();
+ AU.addRequiredID(LCSSAID);
+ AU.addPreservedID(LCSSAID);
}
private:
@@ -199,6 +201,8 @@ bool LoopUnswitch::visitLoop(Loop *L) {
}
}
+ assert(L->isLCSSAForm());
+
return Changed;
}
OpenPOWER on IntegriCloud