[llvm] [RISCV] Inhibit DAG folding shl through zext.w pattern with zba (PR #91626)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu May 9 11:15:16 PDT 2024
================
@@ -2891,8 +2890,7 @@ define i64 @srli_slliw(i64 %1) {
;
; RV64ZBA-LABEL: srli_slliw:
; RV64ZBA: # %bb.0: # %entry
-; RV64ZBA-NEXT: slli a0, a0, 2
-; RV64ZBA-NEXT: srli a0, a0, 4
+; RV64ZBA-NEXT: srli a0, a0, 2
; RV64ZBA-NEXT: slli.uw a0, a0, 4
; RV64ZBA-NEXT: ret
entry:
----------------
topperc wrote:
Isn't this IR non-canonical per InstCombine
https://github.com/llvm/llvm-project/pull/91626
More information about the llvm-commits
mailing list