summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-03-11 23:28:45 +0000
committerChris Lattner <sabre@nondot.org>2002-03-11 23:28:45 +0000
commitbee86626e1bac12453e09557bb83748b2f77bdf0 (patch)
tree019493eb9c572d23f6087bb165f96bbc65334b02 /llvm/lib/Transforms
parente16ff36af8923a4b861cf6b3bc43cfe8967db831 (diff)
downloadbcm5719-llvm-bee86626e1bac12453e09557bb83748b2f77bdf0.tar.gz
bcm5719-llvm-bee86626e1bac12453e09557bb83748b2f77bdf0.zip
Fix bug: test/Regression/Other/2002-03-11-InstCombineHang.ll
llvm-svn: 1864
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/InstructionCombining.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
index 08cf74637e1..1b0196e3e87 100644
--- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -43,8 +43,8 @@ static Instruction *CombineBinOp(BinaryOperator *I) {
if (I->getType()->isIntegral() && cast<ConstantInt>(Op2)->equalsInt(0)){
// Eliminate 'add int %X, 0'
I->replaceAllUsesWith(Op1); // FIXME: This breaks the worklist
- LocalChange = true;
- break;
+ Changed = true;
+ return I;
}
if (Instruction *IOp1 = dyn_cast<Instruction>(Op1)) {
OpenPOWER on IntegriCloud