[PATCH] D120597: [RISCV] With Zbb, fold (sext_inreg (abs X)) -> (max X, (negw X))
Shao-Ce SUN via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 28 07:10:04 PST 2022
achieveartificialintelligence added inline comments.
================
Comment at: llvm/test/CodeGen/RISCV/rv64zbb.ll:977
; RV64ZBB-NEXT: max a0, a0, a1
-; RV64ZBB-NEXT: sext.w a0, a0
; RV64ZBB-NEXT: ret
----------------
If line 964 `(i32 signext %x)` takes effect, why can't we remove line 977 directly?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D120597/new/
https://reviews.llvm.org/D120597
More information about the llvm-commits
mailing list