[PATCH] D132738: [PowerPC] CTRLoop pseudo instructions should not be duplicated

Ting Wang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 26 06:26:40 PDT 2022


tingwang created this revision.
tingwang added reviewers: nemanjai, shchenz, lkail, PowerPC.
tingwang added a project: LLVM.
Herald added subscribers: kbarton, hiraditya.
Herald added a project: All.
tingwang requested review of this revision.
Herald added a subscriber: llvm-commits.

Add `isNotDuplicable` to CTRLoop pseudo instructions, to avoid other pass such as early-tailduplication break the loop structure by duplicating pseudo instructions.

Attached test case will be added before and removed by this fix.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D132738

Files:
  llvm/lib/Target/PowerPC/PPCInstr64Bit.td
  llvm/lib/Target/PowerPC/PPCInstrInfo.td
  llvm/test/CodeGen/PowerPC/ctrloop-duplicated-mi.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132738.455886.patch
Type: text/x-patch
Size: 8673 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220826/2aca31d0/attachment.bin>


More information about the llvm-commits mailing list