[llvm] r253578 - [LIR] Use the more appropriate method. NFC.
Chad Rosier via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 19 09:27:28 PST 2015
Author: mcrosier
Date: Thu Nov 19 11:27:28 2015
New Revision: 253578
URL: http://llvm.org/viewvc/llvm-project?rev=253578&view=rev
Log:
[LIR] Use the more appropriate method. NFC.
Modified:
llvm/trunk/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopIdiomRecognize.cpp?rev=253578&r1=253577&r2=253578&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopIdiomRecognize.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopIdiomRecognize.cpp Thu Nov 19 11:27:28 2015
@@ -367,7 +367,7 @@ bool LoopIdiomRecognize::processLoopStor
// for (i) A[i] = B[i];
if (LoadInst *LI = dyn_cast<LoadInst>(StoredVal)) {
const SCEVAddRecExpr *LoadEv =
- dyn_cast<SCEVAddRecExpr>(SE->getSCEV(LI->getOperand(0)));
+ dyn_cast<SCEVAddRecExpr>(SE->getSCEV(LI->getPointerOperand()));
if (LoadEv && LoadEv->getLoop() == CurLoop && LoadEv->isAffine() &&
StoreEv->getOperand(1) == LoadEv->getOperand(1) && LI->isSimple())
if (processLoopStoreOfLoopLoad(SI, StoreSize, StoreEv, LoadEv, BECount,
More information about the llvm-commits
mailing list