mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
InstCombine: Don't try to reorder shuffles where the mask is a ConstantExpr.
We can't analyze the individual values of a vector expression. PR20114. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211581 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1227,7 +1227,9 @@ Value *InstCombiner::SimplifyVectorOp(BinaryOperator &Inst) {
|
||||
if (isa<ShuffleVectorInst>(RHS)) Shuffle = cast<ShuffleVectorInst>(RHS);
|
||||
if (isa<Constant>(LHS)) C1 = cast<Constant>(LHS);
|
||||
if (isa<Constant>(RHS)) C1 = cast<Constant>(RHS);
|
||||
if (Shuffle && C1 && isa<UndefValue>(Shuffle->getOperand(1)) &&
|
||||
if (Shuffle && C1 &&
|
||||
(isa<ConstantVector>(C1) || isa<ConstantDataVector>(C1)) &&
|
||||
isa<UndefValue>(Shuffle->getOperand(1)) &&
|
||||
Shuffle->getType() == Shuffle->getOperand(0)->getType()) {
|
||||
SmallVector<int, 16> ShMask = Shuffle->getShuffleMask();
|
||||
// Find constant C2 that has property:
|
||||
|
Reference in New Issue
Block a user