The current heuristic in isProfitableToIfCvt assumes we have a branch predictor, and so gives the wrong answer in some cases when we don't. This patch adds a subtarget feature to indicate that a subtarget has no branch predictor, and changes the heuristic in isProfitableToiIfCvt when it's present. This gives a slight overall improvement in a set of embedded benchmarks on Cortex-M4 and Cortex-M33.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Target/ARM/ARMScheduleM3.td | ||
---|---|---|
1 ↗ | (On Diff #103189) | Heading comments seems to be missing (e.g. https://github.com/llvm-mirror/llvm/blob/master/lib/Target/ARM/ARMScheduleA57.td#L1) |
Comment Actions
Hi John,
The non-scheduling parts LGTM. I'll let Javed OK the scheduling parts.
James