Implement the isTruncateFree hooks, lifted from AArch64, that are used by TargetTransformInfo. This allows simplifycfg to reduce the test case into a single basic block.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D37516
[ARM] Implement isTruncateFree ClosedPublic Authored by samparker on Sep 6 2017, 7:28 AM.
Details Summary Implement the isTruncateFree hooks, lifted from AArch64, that are used by TargetTransformInfo. This allows simplifycfg to reduce the test case into a single basic block.
Diff Detail Event TimelineHerald added subscribers: kristof.beyls, javed.absar, aemerson. · View Herald TranscriptSep 6 2017, 7:28 AM This revision is now accepted and ready to land.Sep 15 2017, 1:34 AM Closed by commit rL313533: [ARM] Implement isTruncateFree (authored by sam_parker). · Explain WhySep 18 2017, 7:30 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 114007 lib/Target/ARM/ARMISelLowering.h
lib/Target/ARM/ARMISelLowering.cpp
test/Transforms/SimplifyCFG/ARM/select-trunc-i64.ll
|
Nit: perhaps a comment why on ARM this is free as well? There's a comment about this in AArch64.