This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] Commute comparisons when it would allow folding.
AbandonedPublic

Authored by efriedma on Sep 6 2018, 3:28 PM.

Details

Summary

Currently, whether we fold a shift or extension operation into a compare depends on whether the foldable operand happens to land on the RHS. Fix it so we consistently put foldable operations on the RHS.

Fixes https://bugs.llvm.org/show_bug.cgi?id=38751

Diff Detail

Repository
rL LLVM

Event Timeline

efriedma created this revision.Sep 6 2018, 3:28 PM
efriedma planned changes to this revision.Sep 7 2018, 1:37 PM

Found an issue in test/CodeGen/AArch64/and-mask-removal.ll I somehow missed; I'll post a revised version soon.

efriedma abandoned this revision.Oct 23 2018, 4:42 PM

D53067 was merged.