This is an archive of the discontinued LLVM Phabricator instance.

[ARM][LowOverheadLoops] Use subs during revert.
ClosedPublic

Authored by samparker on Sep 19 2019, 11:57 PM.

Details

Summary

Check whether there are any uses or defs between the LoopDec and LoopEnd. If there's not, then we can use a subs to set the cpsr and skip generating a cmp.

Diff Detail

Event Timeline

samparker created this revision.Sep 19 2019, 11:57 PM

Is it possible for the CPSR to already be live? Live across the loop or something like it?

Not across the loop because LoopEnd implicitly defines it.

dmgreen accepted this revision.Sep 21 2019, 4:02 AM

Nice. LGTM then.

This revision is now accepted and ready to land.Sep 21 2019, 4:02 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptSep 23 2019, 1:59 AM
Herald added a subscriber: hiraditya. · View Herald Transcript