NFC patch for add IR level target hook isFMAFasterThanFMulAndFAdd
Details
- Reviewers
nemanjai hfinkel steven.zhang - Group Reviewers
Restricted Project - Commits
- rGaacf022cd577: [PowerPC] add IR level isFMAFasterThanFMulAndFAdd - NFC And also refactor…
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
The IR hook does not have any caller like NFC patches only adding a helper function without any caller?
actually there is a user isProfitableToHoist in AArch64 target for same purpose as what I do for this patch.
Thanks for your comments @steven.zhang . Updated accordingly.
llvm/lib/Target/PowerPC/PPCISelLowering.cpp | ||
---|---|---|
15304 | I think You mean in IR version, I already call getScalarType() , so no need to call it again? | |
15306 | Right. |
llvm/lib/Target/PowerPC/PPCISelLowering.cpp | ||
---|---|---|
15304 | My understanding is that, these two hooks have completely the same semantics basing on different data structure. We should pass through the type instead of strip the vector type. And it doesn't make sense as the decision is made inside IR version hook, we cannot make any assumption that it didn't care about the vector type. |
Don't get the scalar type as the parameter of "Ty" in IR version is the type of the function.