[PATCH] D132202: Split the indirect jump critical edges.
Zhixuan Huan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 18 22:52:11 PDT 2022
hudsontek created this revision.
hudsontek added reviewers: MatzeB, modimo, wenlei, hoy, hoyFB.
Herald added subscribers: pengfei, hiraditya.
Herald added a project: All.
hudsontek requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This diff is for processing the critical edges generated from the switch statements. When there are more than 2 cases in the switch statement, a critical edge will form between the entry block and the epilog block. This critical edge is not taken care of by the `machine-sink` pass. Therefore we created this diff to make the split happen
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D132202
Files:
llvm/include/llvm/CodeGen/MachineBasicBlock.h
llvm/include/llvm/CodeGen/TargetInstrInfo.h
llvm/lib/CodeGen/MachineBasicBlock.cpp
llvm/lib/Target/X86/X86InstrInfo.cpp
llvm/lib/Target/X86/X86InstrInfo.h
llvm/test/CodeGen/X86/switch-jmp-edge-split.mir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132202.453887.patch
Type: text/x-patch
Size: 12573 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220819/5bb965d8/attachment-0001.bin>
More information about the llvm-commits
mailing list