diff options
author | Chris Lattner <sabre@nondot.org> | 2004-03-17 02:02:47 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-03-17 02:02:47 +0000 |
commit | 7acd1ccb8a61217f8c06b5fbdcc9785437bd0989 (patch) | |
tree | 00d90b3f0242c02e2d8f0b0a8b384e8b6364cf52 /lib | |
parent | e91197965086819410d51de46a556ff05cb9b625 (diff) | |
download | external_llvm-7acd1ccb8a61217f8c06b5fbdcc9785437bd0989.zip external_llvm-7acd1ccb8a61217f8c06b5fbdcc9785437bd0989.tar.gz external_llvm-7acd1ccb8a61217f8c06b5fbdcc9785437bd0989.tar.bz2 |
Fix compilation of mesa, which I broke earlier today
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12465 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Transforms/Utils/SimplifyCFG.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp index 09153ed..a8785fe 100644 --- a/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/lib/Transforms/Utils/SimplifyCFG.cpp @@ -691,8 +691,9 @@ bool llvm::SimplifyCFG(BasicBlock *BB) { } } else if (SwitchInst *SI = dyn_cast<SwitchInst>(BB->begin())) { - if (FoldValueComparisonIntoPredecessors(SI)) - return SimplifyCFG(BB) || 1; + if (isValueEqualityComparison(SI)) + if (FoldValueComparisonIntoPredecessors(SI)) + return SimplifyCFG(BB) || 1; } else if (BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator())) { if (Value *CompVal = isValueEqualityComparison(BB->getTerminator())) { // This block must be empty, except for the setcond inst, if it exists. |