[llvm] [InstCombine] Try to fold trunc(shuffle(zext)) to just a shuffle (PR #78636)
Pranav Kant via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 19 12:58:58 PST 2024
================
@@ -103,6 +103,13 @@ Value *InstCombinerImpl::EvaluateInDifferentType(Value *V, Type *Ty,
}
}
break;
+ case Instruction::ShuffleVector: {
+ Value *Op0 = EvaluateInDifferentType(I->getOperand(0), Ty, isSigned);
+ Value *Op1 = EvaluateInDifferentType(I->getOperand(1), Ty, isSigned);
----------------
pranavk wrote:
Can I revert this in the meantime? (unless you already have a fix for this)
https://github.com/llvm/llvm-project/pull/78636
More information about the llvm-commits
mailing list