From 694e37f08a7c09ccc24642532106295cf7b3a1e3 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 17 Aug 2003 19:41:53 +0000 Subject: 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 --- lib/Transforms/Utils/Local.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/Transforms/Utils/Local.cpp') 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(TI)) { + if (ConstantInt *CI = dyn_cast(SI->getCondition())) { + + + } + } return false; } -- cgit v1.2.3-18-g5258