forked from OSchip/llvm-project
Zap unnecessary isIntDivCheap() check. PR11485. No testcase because this doesn't affect any in-tree target.
llvm-svn: 146015
This commit is contained in:
parent
2931cd9cf9
commit
f9081a8afe
|
|
@ -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