This is an archive of the discontinued LLVM Phabricator instance.

[SCEV] Strengthen SCEVExpander::isHighCostExpansion.
ClosedPublic

Authored by sanjoy on Apr 11 2015, 11:58 PM.

Details

Summary

Teach isHighCostExpansion to consider divisions by power-of-two
constants as cheap and add a test case. This change is needed for a new
user of isHighCostExpansion that will be added in a subsequent change.

Depends on D8995.

Diff Detail

Repository
rL LLVM

Event Timeline

sanjoy updated this revision to Diff 23653.Apr 11 2015, 11:58 PM
sanjoy retitled this revision from to [SCEV] Extract and strengthen isHighCostExpansion..
sanjoy updated this object.
sanjoy edited the test plan for this revision. (Show Details)
sanjoy added a reviewer: atrick.
sanjoy added a subscriber: Unknown Object (MLST).
sanjoy updated this revision to Diff 23657.Apr 12 2015, 11:52 AM

Address Justin's review -- break up the patch into NFCI and FCI parts.

sanjoy retitled this revision from [SCEV] Extract and strengthen isHighCostExpansion. to [SCEV] Strengthen SCEVExpander::isHighCostExpansion..Apr 12 2015, 11:54 AM
sanjoy updated this object.
atrick accepted this revision.Apr 13 2015, 12:52 AM
atrick edited edge metadata.

LGTM. But I suggest putting a descriptive comment in the test case.

This revision is now accepted and ready to land.Apr 13 2015, 12:52 AM
This revision was automatically updated to reflect the committed changes.