BIC is generally faster, and it can put the output in a different register from the input.
We already do this in Thumb2 mode; not sure why the equivalent fix never got applied to ARM mode.
Paths
| Differential D31797
[ARM] Prefer BIC over BFC in ARM mode. ClosedPublic Authored by efriedma on Apr 6 2017, 4:49 PM.
Details Summary BIC is generally faster, and it can put the output in a different register from the input. We already do this in Thumb2 mode; not sure why the equivalent fix never got applied to ARM mode.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Apr 7 2017, 12:10 AM Closed by commit rL299803: [ARM] Prefer BIC over BFC in ARM mode. (authored by efriedma). · Explain WhyApr 7 2017, 3:14 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 94459 lib/Target/ARM/ARMInstrInfo.td
test/CodeGen/ARM/2012-10-04-AAPCS-byval-align8.ll
test/CodeGen/ARM/bfi.ll
test/CodeGen/ARM/bic.ll
test/CodeGen/ARM/fp16-promote.ll
test/CodeGen/ARM/fpcmp-opt.ll
test/CodeGen/ARM/softfp-fabs-fneg.ll
test/CodeGen/ARM/va_arg.ll
|