mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Zap unnecessary isIntDivCheap() check. PR11485. No testcase because this doesn't affect any in-tree target.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146015 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1ceef1a491
commit
1c663fee56
@ -1777,7 +1777,7 @@ SDValue DAGCombiner::visitSDIV(SDNode *N) {
|
||||
N0, N1);
|
||||
}
|
||||
// fold (sdiv X, pow2) -> simple ops after legalize
|
||||
if (N1C && !N1C->isNullValue() && !TLI.isIntDivCheap() &&
|
||||
if (N1C && !N1C->isNullValue() &&
|
||||
(N1C->getAPIntValue().isPowerOf2() ||
|
||||
(-N1C->getAPIntValue()).isPowerOf2())) {
|
||||
// If dividing by powers of two is cheap, then don't perform the following
|
||||
|
Loading…
Reference in New Issue
Block a user