From f11216d24f542d375b82d831cdc34af7d822e2ac Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 15 Sep 2004 02:34:40 +0000 Subject: [PATCH] Fix a bug in the previous checkin that broke 255.vortex llvm-svn: 16355 --- llvm/lib/Transforms/Scalar/LICM.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/Scalar/LICM.cpp b/llvm/lib/Transforms/Scalar/LICM.cpp index 554b5ec517b0..435bb4bb0842 100644 --- a/llvm/lib/Transforms/Scalar/LICM.cpp +++ b/llvm/lib/Transforms/Scalar/LICM.cpp @@ -643,7 +643,7 @@ void LICM::PromoteValuesInLoop() { LoadValue = LI; break; } else if (StoreInst *SI = dyn_cast(*UI)) { - if (SI->getOperand(1) == LI) { + if (SI->getOperand(1) == Ptr) { LoadValue = SI->getOperand(0); break; }