We allow overflowing instructions if they're decreasing and only used by an unsigned compare. Add the extra condition that the icmp cannot be using a negative immediate.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D52102
[ARM] Disallow icmp with negative imm and overflow ClosedPublic Authored by samparker on Sep 14 2018, 9:20 AM.
Details Summary We allow overflowing instructions if they're decreasing and only used by an unsigned compare. Add the extra condition that the icmp cannot be using a negative immediate.
Diff Detail Event TimelineThis revision is now accepted and ready to land.Sep 17 2018, 6:11 AM Closed by commit rL342392: [ARM] Disallow icmp with negative imm and overflow (authored by sam_parker). · Explain WhySep 17 2018, 6:51 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 165524 lib/Target/ARM/ARMCodeGenPrepare.cpp
test/CodeGen/ARM/arm-cgp-icmps.ll
|