[llvm] [RISCV] Support constant hoisting of immediate store values (PR #96073)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 20 06:52:16 PDT 2024
================
@@ -4,10 +4,7 @@
define i1 @f() {
; CHECK-LABEL: f:
; CHECK: # %bb.0:
-; CHECK-NEXT: lui a0, 524288
-; CHECK-NEXT: not a0, a0
-; CHECK-NEXT: sltiu a0, a0, 2
-; CHECK-NEXT: xori a0, a0, 1
+; CHECK-NEXT: li a0, 1
----------------
topperc wrote:
Does it still generate an opaque constant needed for the original bug?
https://github.com/llvm/llvm-project/pull/96073
More information about the llvm-commits
mailing list