[llvm] [InstCombine] Allow freezing multiple operands (PR #154336)

Cullen Rhodes via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 19 09:24:12 PDT 2025


================
@@ -255,9 +255,10 @@ define i32 @sub_sub1_nsw_nsw(i32 %a, i32 %b, i32 %c) {
 
 define i8 @neg_nsw_freeze(i8 %a1, i8 %a2) {
 ; CHECK-LABEL: @neg_nsw_freeze(
-; CHECK-NEXT:    [[A_NEG:%.*]] = sub nsw i8 [[A2:%.*]], [[A1:%.*]]
-; CHECK-NEXT:    [[FR_NEG:%.*]] = freeze i8 [[A_NEG]]
-; CHECK-NEXT:    ret i8 [[FR_NEG]]
+; CHECK-NEXT:    [[FR_NEG:%.*]] = freeze i8 [[A_NEG:%.*]]
----------------
c-rhodes wrote:

nit: CHECK variable names are out of sync with IR here and elsewhere, could do with re-generating these tests with --reset-variable-names.

https://github.com/llvm/llvm-project/pull/154336


More information about the llvm-commits mailing list