mirror of
https://github.com/RPCSX/llvm.git
synced 2025-03-05 19:38:13 +00:00
Fix PR583 and testcase Transforms/InstCombine/2005-06-15-DivSelectCrash.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22227 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5adb41a750
commit
f9c775c22e
@ -1067,7 +1067,7 @@ Instruction *InstCombiner::visitDiv(BinaryOperator &I) {
|
|||||||
I.setOperand(1, SFO);
|
I.setOperand(1, SFO);
|
||||||
return &I;
|
return &I;
|
||||||
} else if (SFO->getValue() == 0) {
|
} else if (SFO->getValue() == 0) {
|
||||||
I.setOperand(2, STO);
|
I.setOperand(1, STO);
|
||||||
return &I;
|
return &I;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user