Please take a look.
Chad
Differential D23677
[AArch64] Avoid materializing constant values when generating csel instructions. mcrosier on Aug 18 2016, 10:32 AM. Authored by
Details
Diff Detail
Event Timeline
Comment Actions I've uploaded a new patch, which was my original solution to solving PR28965. My first patch tried to be more general, but obviously made an incorrect assumption.
Comment Actions Possibly interesting testcase: "x == 7 ? 7 : -1". Should generate cmp+csinv. Also, the related "x == 7 ? 7 : 1" should generate cmp+csinc.
Comment Actions I found very few cases where the csinc/csinv optimizations actually hit, so I'm limiting this patch to just csel to simplify the logic/review.
|