[llvm-commits] [llvm] r107270 - /llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp
Gabor Greif
ggreif at gmail.com
Wed Jun 30 02:15:28 PDT 2010
Author: ggreif
Date: Wed Jun 30 04:15:28 2010
New Revision: 107270
URL: http://llvm.org/viewvc/llvm-project?rev=107270&view=rev
Log:
use getArgOperand instead of getOperand
Modified:
llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp?rev=107270&r1=107269&r2=107270&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopStrengthReduce.cpp Wed Jun 30 04:15:28 2010
@@ -559,7 +559,7 @@
case Intrinsic::x86_sse2_storeu_pd:
case Intrinsic::x86_sse2_storeu_dq:
case Intrinsic::x86_sse2_storel_dq:
- if (II->getOperand(1) == OperandVal)
+ if (II->getArgOperand(0) == OperandVal)
isAddress = true;
break;
}
@@ -581,7 +581,7 @@
case Intrinsic::x86_sse2_storeu_pd:
case Intrinsic::x86_sse2_storeu_dq:
case Intrinsic::x86_sse2_storel_dq:
- AccessTy = II->getOperand(1)->getType();
+ AccessTy = II->getArgOperand(0)->getType();
break;
}
}
More information about the llvm-commits
mailing list