diff options
author | Craig Topper <craig.topper@sifive.com> | 2024-12-15 20:47:17 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-15 20:47:17 -0800 |
commit | de1a423c2356d2040cab74e657ed024bf9ce8517 (patch) | |
tree | 1b6c0daffe888b8c8eb2a7f3802518faa8903b53 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 9571d2023bee35f7c0e60a931ce5a4074d034635 (diff) | |
download | llvm-de1a423c2356d2040cab74e657ed024bf9ce8517.zip llvm-de1a423c2356d2040cab74e657ed024bf9ce8517.tar.gz llvm-de1a423c2356d2040cab74e657ed024bf9ce8517.tar.bz2 |
[GISel][RISCV][AArch64] Support legalizing G_SCMP/G_UCMP to sub(isgt,islt). (#119265)
Convert the LLT to EVT and call
TargetLowering::shouldExpandCmpUsingSelects to determine if we should do
this.
We don't have a getSetccResultType, so I'm boolean extending the
compares to the result type and using that. If the compares legalize to
the same type, these extends will get removed. Unfortunately, if the
compares legalize to a different type, we end up with truncates or
extends that might not be optimally placed.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions