mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-02 07:32:52 +00:00
LoopVectorize: Use variable instead of repeated function call
No functionality change intended. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181666 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8112d22701
commit
6bb539a643
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user