[llvm] [DAGCombiner] Set shift flags during visit. (PR #91239)

Ulrich Weigand via llvm-commits llvm-commits at lists.llvm.org
Tue May 7 00:19:43 PDT 2024


================
@@ -85,8 +93,13 @@ define i64 @f7(i64 %val) {
 ; Test another form of f6, which is that produced by InstCombine.
 define i64 @f8(i64 %val) {
 ; CHECK-LABEL: f8:
-; CHECK: lpgfr %r2, %r2
-; CHECK: br %r14
+; CHECK:       # %bb.0:
+; CHECK-NEXT:    sllg %r0, %r2, 32
+; CHECK-NEXT:    srag %r2, %r0, 32
+; CHECK-NEXT:    cgibhe %r0, 0, 0(%r14)
----------------
uweigand wrote:

All the actual changes in the SystemZ tests look to be clear regressions.  It doesn't appear to recognize the "abs" patterns with sign extension and more.

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


More information about the llvm-commits mailing list