mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-23 22:23:00 +00:00
InstCombine: Disable umul.with.overflow recognition for vectors.
It doesn't make a lot on most targets and the code isn't ready for it. PR20113. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211583 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2042,9 +2042,13 @@ static Instruction *ProcessUAddIdiom(Instruction &I, Value *OrigAddV,
|
||||
/// replacement required.
|
||||
static Instruction *ProcessUMulZExtIdiom(ICmpInst &I, Value *MulVal,
|
||||
Value *OtherVal, InstCombiner &IC) {
|
||||
// Don't bother doing this transformation for pointers, don't do it for
|
||||
// vectors.
|
||||
if (!isa<IntegerType>(MulVal->getType()))
|
||||
return nullptr;
|
||||
|
||||
assert(I.getOperand(0) == MulVal || I.getOperand(1) == MulVal);
|
||||
assert(I.getOperand(0) == OtherVal || I.getOperand(1) == OtherVal);
|
||||
assert(isa<IntegerType>(MulVal->getType()));
|
||||
Instruction *MulInstr = cast<Instruction>(MulVal);
|
||||
assert(MulInstr->getOpcode() == Instruction::Mul);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user