diff options
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp')
| -rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp b/llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp index 09eafd09451b..ce6154fd610e 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp @@ -86,7 +86,7 @@ static bool cheapToScalarize(Value *V, Value *EI) { if (cheapToScalarize(V0, EI) || cheapToScalarize(V1, EI)) return true; - CmpInst::Predicate UnusedPred; + CmpPredicate UnusedPred; if (match(V, m_OneUse(m_Cmp(UnusedPred, m_Value(V0), m_Value(V1))))) if (cheapToScalarize(V0, EI) || cheapToScalarize(V1, EI)) return true; @@ -486,7 +486,7 @@ Instruction *InstCombinerImpl::visitExtractElementInst(ExtractElementInst &EI) { } Value *X, *Y; - CmpInst::Predicate Pred; + CmpPredicate Pred; if (match(SrcVec, m_Cmp(Pred, m_Value(X), m_Value(Y))) && cheapToScalarize(SrcVec, Index)) { // extelt (cmp X, Y), Index --> cmp (extelt X, Index), (extelt Y, Index) @@ -2978,7 +2978,7 @@ Instruction *InstCombinerImpl::visitShuffleVectorInst(ShuffleVectorInst &SVI) { } } if (auto *PN = dyn_cast<PHINode>(LHS)) { - if (Instruction *I = foldOpIntoPhi(SVI, PN)) + if (Instruction *I = foldOpIntoPhi(SVI, PN, /*AllowMultipleUses=*/true)) return I; } } |
