diff options
author | Sergei Barannikov <barannikov88@gmail.com> | 2023-10-09 09:40:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-09 09:40:44 +0300 |
commit | c98bf1e45e22e2a7d107b187f5d3e7abf5e81375 (patch) | |
tree | 64da40c846a3163d0cd7155649c39cd034e57d02 /llvm/tools/llvm-objdump/llvm-objdump.cpp | |
parent | 7cfe32d4d8da6eb6ea558a584a3a52e2e8a97a3c (diff) | |
download | llvm-c98bf1e45e22e2a7d107b187f5d3e7abf5e81375.zip llvm-c98bf1e45e22e2a7d107b187f5d3e7abf5e81375.tar.gz llvm-c98bf1e45e22e2a7d107b187f5d3e7abf5e81375.tar.bz2 |
[Sparc] Replace CMP instructions with InstAlias (NFCI) (#66859)
According to the manual `cmp` is a synthetic instruction that maps to
`subcc` with %g0 output operand. Make it so.
The change required some changes to instruction selection process. The
reason is that the old CMP did not have an output operand, while setcc
does have one. We want that operand to be %g0. The easiest way to
achieve this seems to be to mark SUBCC with hasPostISelHook and replace
the output operand with %g0 in the corresponding TargetLowering method.
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions