Add new predicate to more accurately model the cost of arithmetic and logical operations shifted left.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
llvm/lib/Target/AArch64/AArch64InstrInfo.h | ||
---|---|---|
372 ↗ | (On Diff #112704) | Is it for shift left only, and if so should it be then called out explicitly? |
Comment Actions
- I'd leave out the if (Subtarget.getProcFamily() != AArch64Subtarget::ExynosM1) return false; check in isExynosShiftExtFast() if someone chose the Exynos scheduling he probably wants that behavior even if getProcFamily() doesn't match. (You can pull the check out to isAsCheapAsAMove()).
- This must have happened in an earlier commit already, but in any case I'd really discourage the use of Subtarget.getProcFamily(), better create a subtarget feature to control the behavior.
Comment Actions
OK
- This must have happened in an earlier commit already, but in any case I'd really discourage the use of Subtarget.getProcFamily(), better create a subtarget feature to control the behavior.
It's legacy code before the refactoring of such calls that I didn't feel this to be the time to address.