aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorNoah Goldstein <goldstein.w.n@gmail.com>2023-02-16 11:57:12 -0600
committerNoah Goldstein <goldstein.w.n@gmail.com>2023-02-27 18:53:25 -0600
commit69a322fed19b977d15be9500d8653496b73673e9 (patch)
tree5c8ad7bb7fc9cc54549995ac64b087a4827ca22c /clang/lib/CodeGen/CGDebugInfo.cpp
parente56ddae849317a7f41f97a8a9c41cf63ce40e4f8 (diff)
downloadllvm-69a322fed19b977d15be9500d8653496b73673e9.zip
llvm-69a322fed19b977d15be9500d8653496b73673e9.tar.gz
llvm-69a322fed19b977d15be9500d8653496b73673e9.tar.bz2
Add new pass `X86FixupInstTuning` for fixing up machine-instruction selection.
There are a variety of cases where we want more control over the exact instruction emitted. This commit creates a new pass to fixup instructions after the DAG has been lowered. The pass is only meant to replace instructions that are guranteed to be interchangable, not to do analysis for special cases. Handling these instruction changes in in X86ISelLowering of X86ISelDAGToDAG isn't ideal, as its liable to either break existing patterns that expected a certain instruction or generate infinite loops. As well, operating as the MachineInstruction level allows us to access scheduling/code size information for making the decisions. Currently only implements `{v}permilps` -> `{v}shufps/{v}shufd` but more transforms can be added. Differential Revision: https://reviews.llvm.org/D143787
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
0 files changed, 0 insertions, 0 deletions