aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2023-11-13 11:36:06 -0800
committerCraig Topper <craig.topper@sifive.com>2023-11-13 12:21:36 -0800
commit915e092400f92a617a4ca7cb9f03a642bb30c7cc (patch)
tree574fd732c8a33487570dc5ac919ad18d32f3fc6e /clang/lib/CodeGen/CodeGenModule.cpp
parent05300222bab4d48e13cc8bb5cce8c160faad47a0 (diff)
downloadllvm-915e092400f92a617a4ca7cb9f03a642bb30c7cc.zip
llvm-915e092400f92a617a4ca7cb9f03a642bb30c7cc.tar.gz
llvm-915e092400f92a617a4ca7cb9f03a642bb30c7cc.tar.bz2
[RISCV] Select zext as sext when sign bit is 0 for -riscv-experimental-rv64-legal-i32
In our default SelectionDAG where i32 isn't legal, the zext will become and i64 AND and often get optimized out on its own. With i32 legal, we need to turn it in into sext.w and rely on RISCVOptWInstrs to remove it.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions