diff options
author | Yingwei Zheng <dtcxzyw2333@gmail.com> | 2024-04-25 14:22:14 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-25 14:22:14 +0800 |
commit | 2c9e2e9f0b75d6b023a388564092cc852ba29bd5 (patch) | |
tree | 2b8b4ce9267a4a0cfd0d7c113ef05369ddc7e221 /clang/lib/Frontend/ASTUnit.cpp | |
parent | 42070a5c092ed420bf92ebf38229c594885e94c7 (diff) | |
download | llvm-2c9e2e9f0b75d6b023a388564092cc852ba29bd5.zip llvm-2c9e2e9f0b75d6b023a388564092cc852ba29bd5.tar.gz llvm-2c9e2e9f0b75d6b023a388564092cc852ba29bd5.tar.bz2 |
[RISCV][ISel] Eliminate `andi rd, rs1, -1` instructions (#89976)
Inspired by https://github.com/llvm/llvm-project/pull/89966, this patch
handles the special case `binop_allwusers<and> GPR:$rs1, 0xffffffff ->
copy $rs1` to avoid creating redundant `andi rd, rs1, -1` instructions.
Diffstat (limited to 'clang/lib/Frontend/ASTUnit.cpp')
0 files changed, 0 insertions, 0 deletions