We should consider the feeder user number when we do reverse memory operation transformation. Otherwise, we may get negative impact.
Details
Details
- Reviewers
nemanjai jsji stefanp - Group Reviewers
Restricted Project - Commits
- rG80aa9b0f7b3e: [PowerPC] stop reverse mem op generation for some cases.
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM.
llvm/lib/Target/PowerPC/PPCISelLowering.cpp | ||
---|---|---|
14421 | It is not clear why the fact that there is no D-Form makes this unprofitable. // If there are other uses of the shuffle, the swap cannot be avoided. // Forcing the use of an X-Form (since swapped stores only have // X-Forms) without removing the swap is unprofitable. |
llvm/lib/Target/PowerPC/PPCISelLowering.cpp | ||
---|---|---|
14421 | Thanks. It was updated in the commit. |
It is not clear why the fact that there is no D-Form makes this unprofitable.
Perhaps: