This is an archive of the discontinued LLVM Phabricator instance.

[ARM] Select VMAXNM and VMINNM regardless of operand order
ClosedPublic

Authored by olista01 on Oct 24 2014, 5:44 AM.

Details

Reviewers
rengolin
Summary

Currently, the ARM backend will select the VMAXNM and VMINNM for these C
expressions:

(a < b) ? a : b
(a > b) ? a : b

but not these expressions:

(a > b) ? b : a
(a < b) ? b : a

This patch allows all of these expressions to be matched.

Diff Detail

Event Timeline

olista01 updated this revision to Diff 15407.Oct 24 2014, 5:44 AM
olista01 retitled this revision from to [ARM] Select VMAXNM and VMINNM regardless of operand order.
olista01 updated this object.
olista01 edited the test plan for this revision. (Show Details)
olista01 set the repository for this revision to rL LLVM.
olista01 added a subscriber: Unknown Object (MLST).
rengolin accepted this revision.Oct 25 2014, 5:12 AM
rengolin added a reviewer: rengolin.
rengolin added a subscriber: rengolin.

LGTM, Thanks!

This revision is now accepted and ready to land.Oct 25 2014, 5:12 AM
olista01 closed this revision.Oct 27 2014, 2:33 AM

Thanks, committed as r220671.