diff options
| author | Arnold Schwaighofer <aschwaighofer@apple.com> | 2013-05-11 23:04:26 +0000 | 
|---|---|---|
| committer | Arnold Schwaighofer <aschwaighofer@apple.com> | 2013-05-11 23:04:26 +0000 | 
| commit | a544fefa322d3bb6a61626b898a64a827558d04c (patch) | |
| tree | d57ee09b274614baf8681db533098aceaafa0dab /llvm | |
| parent | 1ba84df43729000ba6eb82bb08a24f8575b5f0e3 (diff) | |
| download | bcm5719-llvm-a544fefa322d3bb6a61626b898a64a827558d04c.tar.gz bcm5719-llvm-a544fefa322d3bb6a61626b898a64a827558d04c.zip | |
LoopVectorize: Use variable instead of repeated function call
No functionality change intended.
llvm-svn: 181666
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | 7 | 
1 files changed, 4 insertions, 3 deletions
| diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp index 4422079c385..c9275b2371c 100644 --- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp @@ -2389,10 +2389,11 @@ bool LoopVectorizationLegality::canVectorizeInstrs() {           ++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;          } | 

