This is an archive of the discontinued LLVM Phabricator instance.

[ARM64] Recognize conditional incremental when there is ZEXT after SETCC in DAG
Needs ReviewPublic

Authored by weimingz on May 7 2014, 10:56 AM.

Details

Reviewers
t.p.northover
Summary

Diff Detail

Event Timeline

weimingz updated this revision to Diff 9181.May 7 2014, 10:56 AM
weimingz retitled this revision from to [ARM64] Recognize conditional incremental when there is ZEXT after SETCC in DAG.
weimingz updated this object.
weimingz edited the test plan for this revision. (Show Details)
t.p.northover edited edge metadata.May 12 2014, 2:01 AM

Hi Weiming,

This looks perfectly correct, but may be a bit more intelligible if you factor out a "static bool isSetCCOrZExtSetCC()" function. We could really do with a neater way to handle that nested std::swap idiom.

Anyway, I'll leave the choice up to you, no need to ask for re-review either way.

Cheers.

Tim.

Thanks for reviewing, Tim. I factored out the function and committed as r208660.