mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
Fix type of shuffle obtained from reordering with binary operation
In transformation:
BinOp(shuffle(v1,undef), shuffle(v2,undef)) -> shuffle(BinOp(v1, v2),undef)
type of the undef argument must be same as type of BinOp.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208531 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1125,7 +1125,7 @@ Value *InstCombiner::SimplifyVectorOp(BinaryOperator &Inst) {
|
||||
BinaryOperator *NewBO = CreateBinOpAsGiven(Inst, LShuf->getOperand(0),
|
||||
RShuf->getOperand(0), Builder);
|
||||
Value *Res = Builder->CreateShuffleVector(NewBO,
|
||||
UndefValue::get(Inst.getType()), LShuf->getMask());
|
||||
UndefValue::get(NewBO->getType()), LShuf->getMask());
|
||||
return Res;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user