This is an archive of the discontinued LLVM Phabricator instance.

[LoopUnroll] Move a simple check earlier. NFC.
ClosedPublic

Authored by haicheng on Aug 17 2016, 8:52 AM.

Details

Summary

CallInst can have side effects. Move the check of CallInst earlier to skip AddCostRecursively.

Diff Detail

Repository
rL LLVM

Event Timeline

haicheng updated this revision to Diff 68367.Aug 17 2016, 8:52 AM
haicheng retitled this revision from to [LoopUnroll] Move a simple check earlier. NFC..
haicheng updated this object.
haicheng set the repository for this revision to rL LLVM.
haicheng added a subscriber: llvm-commits.
mcrosier accepted this revision.Aug 17 2016, 9:12 AM
mcrosier edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Aug 17 2016, 9:12 AM
This revision was automatically updated to reflect the committed changes.