aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2024-12-15 20:47:17 -0800
committerGitHub <noreply@github.com>2024-12-15 20:47:17 -0800
commitde1a423c2356d2040cab74e657ed024bf9ce8517 (patch)
tree1b6c0daffe888b8c8eb2a7f3802518faa8903b53 /clang/lib/CodeGen/CodeGenModule.cpp
parent9571d2023bee35f7c0e60a931ce5a4074d034635 (diff)
downloadllvm-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