extsw and sldi are supposed to be combined if they are in the same BB in instruction selection phase. This patch handles the case where extsw and sldi are not in the same BB.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
llvm/lib/Target/PowerPC/PPCMIPeephole.cpp | ||
---|---|---|
1404 ↗ | (On Diff #206984) | Should we also erase SrcMI? |
llvm/lib/Target/PowerPC/PPCMIPeephole.cpp | ||
---|---|---|
1404 ↗ | (On Diff #206984) | Yes. We can erase SrcMI here, also we can leave it to DCE pass. I have no idea which one is preferable. |
llvm/lib/Target/PowerPC/PPCMIPeephole.cpp | ||
---|---|---|
1404 ↗ | (On Diff #206984) | Might as well do it here. |
llvm/lib/Target/PowerPC/PPCMIPeephole.cpp | ||
---|---|---|
1404 ↗ | (On Diff #206984) | Done. |