This is an archive of the discontinued LLVM Phabricator instance.

Thumb2: When optimizing for size, do not if-convert branches involving comparisons with zero.
ClosedPublic

Authored by pcc on Apr 21 2015, 8:11 PM.

Details

Summary

This allows the constant island pass to lower these branches to cbn?z
instructions, resulting in a shorter instruction sequence.

Diff Detail

Event Timeline

pcc updated this revision to Diff 24193.Apr 21 2015, 8:11 PM
pcc retitled this revision from to Thumb2: When optimizing for size, do not if-convert branches involving comparisons with zero..
pcc updated this object.
pcc edited the test plan for this revision. (Show Details)
pcc added a reviewer: t.p.northover.
pcc added a subscriber: Unknown Object (MLST).
rengolin accepted this revision.Apr 23 2015, 2:15 AM
rengolin added a reviewer: rengolin.

LGTM, Thanks!

This revision is now accepted and ready to land.Apr 23 2015, 2:15 AM
This revision was automatically updated to reflect the committed changes.