Similar to the case for G_ADD.
There was a function in CTMark/pairlocalalign which was missing this case, causing GlobalISel to emit a add + csel when a csinc is all that is necessary.
Minor code size improvements on CTMark at -Os.
Paths
| Differential D96390
[AArch64][GlobalISel] Fold selects fed by G_PTR_ADD ClosedPublic Authored by paquette on Feb 9 2021, 6:09 PM.
Details
Summary Similar to the case for G_ADD. There was a function in CTMark/pairlocalalign which was missing this case, causing GlobalISel to emit a add + csel when a csinc is all that is necessary. Minor code size improvements on CTMark at -Os.
Diff Detail Event TimelineHerald added subscribers: danielkiss, hiraditya, kristof.beyls, rovka. · View Herald TranscriptFeb 9 2021, 6:09 PM This revision is now accepted and ready to land.Feb 9 2021, 11:44 PM Closed by commit rG7eee8585859c: [AArch64][GlobalISel] Fold selects fed by G_PTR_ADD (authored by paquette). · Explain WhyFeb 10 2021, 12:11 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 322560 llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
llvm/test/CodeGen/AArch64/GlobalISel/select-select.mir
|