mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-04 21:31:03 +00:00
Remove dead check.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76301 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fc21f8ff14
commit
1694e095c0
@ -2652,9 +2652,7 @@ Instruction *InstCombiner::visitMul(BinaryOperator &I) {
|
||||
bool Changed = SimplifyCommutative(I);
|
||||
Value *Op0 = I.getOperand(0);
|
||||
|
||||
// TODO: If Op1 is undef and Op0 is finite, return zero.
|
||||
if (!I.getType()->isFPOrFPVector() &&
|
||||
isa<UndefValue>(I.getOperand(1))) // undef * X -> 0
|
||||
if (isa<UndefValue>(I.getOperand(1))) // undef * X -> 0
|
||||
return ReplaceInstUsesWith(I, Context->getNullValue(I.getType()));
|
||||
|
||||
// Simplify mul instructions with a constant RHS...
|
||||
|
Loading…
x
Reference in New Issue
Block a user