diff options
author | Chris Lattner <sabre@nondot.org> | 2003-08-17 19:41:53 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-08-17 19:41:53 +0000 |
commit | 694e37f08a7c09ccc24642532106295cf7b3a1e3 (patch) | |
tree | adb19b90f3b2a047d68d2c1ac53dccccc31d9845 /lib/Transforms/Utils/Local.cpp | |
parent | f0cd835784daf390e730f1c4a9582ff0c517e57e (diff) |
Fix bug: SimplifyCFG/2003-08-17-BranchFoldOrdering.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7921 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/Local.cpp')
-rw-r--r-- | lib/Transforms/Utils/Local.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Transforms/Utils/Local.cpp b/lib/Transforms/Utils/Local.cpp index d3778c5044..3ea76c4ea5 100644 --- a/lib/Transforms/Utils/Local.cpp +++ b/lib/Transforms/Utils/Local.cpp @@ -74,6 +74,12 @@ bool ConstantFoldTerminator(BasicBlock *BB) { BI->setUnconditionalDest(Dest1); return true; } + } else if (SwitchInst *SI = dyn_cast<SwitchInst>(TI)) { + if (ConstantInt *CI = dyn_cast<ConstantInt>(SI->getCondition())) { + + + } + } return false; } |