diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2020-07-31 22:12:34 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2020-07-31 22:12:34 +0000 |
commit | 899468a0006db4146d9b229234a183f499f7bcd2 (patch) | |
tree | 12efffe77267e4f6ff3b870da0e01dea0462993d /llvm/lib/Transforms/InstCombine/InstructionCombining.cpp | |
parent | 2cedf089162d7ff08af2fb09e4adea44608e7233 (diff) | |
download | src-899468a0006db4146d9b229234a183f499f7bcd2.tar.gz src-899468a0006db4146d9b229234a183f499f7bcd2.zip |
Notes
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstructionCombining.cpp')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstructionCombining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp index b3254c10a0b2..17a5ec3f87fa 100644 --- a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp +++ b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp @@ -1543,7 +1543,7 @@ Instruction *InstCombiner::foldVectorBinop(BinaryOperator &Inst) { Constant *C; if (match(&Inst, m_c_BinOp(m_OneUse(m_Shuffle(m_Value(V1), m_Undef(), m_Mask(Mask))), - m_Constant(C))) && + m_Constant(C))) && !isa<ConstantExpr>(C) && cast<FixedVectorType>(V1->getType())->getNumElements() <= NumElts) { assert(Inst.getType()->getScalarType() == V1->getType()->getScalarType() && "Shuffle should not change scalar type"); |