aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/AST/ByteCode/Compiler.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2025-09-18 17:33:08 -0700
committerGitHub <noreply@github.com>2025-09-18 17:33:08 -0700
commit0c1ab02e46d38e8b67843eb3c88b1dc054d561f8 (patch)
tree6359f1ae67bd09643f8efdb518eef6d4578c7661 /clang/lib/AST/ByteCode/Compiler.cpp
parentdda7ce6624e357076fefe55a756ba7181db92ba2 (diff)
downloadllvm-0c1ab02e46d38e8b67843eb3c88b1dc054d561f8.zip
llvm-0c1ab02e46d38e8b67843eb3c88b1dc054d561f8.tar.gz
llvm-0c1ab02e46d38e8b67843eb3c88b1dc054d561f8.tar.bz2
[RISCV] Use bseti 31 for (or X, -2147483648) when upper 32 bits aren't used. (#159678)
If the original type was i32, type legalization will sign extend the constant. This prevents it from having a single bit set or clear so other patterns can't match. If the upper bits aren't used, we can ignore the sign extension. Similar for bclri and binvi.
Diffstat (limited to 'clang/lib/AST/ByteCode/Compiler.cpp')
0 files changed, 0 insertions, 0 deletions