[llvm] r181666 - LoopVectorize: Use variable instead of repeated function call
Arnold Schwaighofer
aschwaighofer at apple.com
Sat May 11 16:04:26 PDT 2013
Author: arnolds
Date: Sat May 11 18:04:26 2013
New Revision: 181666
URL: http://llvm.org/viewvc/llvm-project?rev=181666&view=rev
Log:
LoopVectorize: Use variable instead of repeated function call
No functionality change intended.
Modified:
llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp
Modified: llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp?rev=181666&r1=181665&r2=181666&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/LoopVectorize.cpp Sat May 11 18:04:26 2013
@@ -2389,10 +2389,11 @@ bool LoopVectorizationLegality::canVecto
++it) {
if (PHINode *Phi = dyn_cast<PHINode>(it)) {
+ Type *PhiTy = Phi->getType();
// Check that this PHI type is allowed.
- if (!Phi->getType()->isIntegerTy() &&
- !Phi->getType()->isFloatingPointTy() &&
- !Phi->getType()->isPointerTy()) {
+ if (!PhiTy->isIntegerTy() &&
+ !PhiTy->isFloatingPointTy() &&
+ !PhiTy->isPointerTy()) {
DEBUG(dbgs() << "LV: Found an non-int non-pointer PHI.\n");
return false;
}
More information about the llvm-commits
mailing list