[llvm] [GlobalISel] Combine into abd[su] and legalize abd[su] (PR #118865)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 6 13:42:01 PST 2024
Thorsten =?utf-8?q?Schütt?= <schuett at gmail.com>,
Thorsten =?utf-8?q?Schütt?= <schuett at gmail.com>,
Thorsten =?utf-8?q?Schütt?= <schuett at gmail.com>,
Thorsten =?utf-8?q?Schütt?= <schuett at gmail.com>,
Thorsten =?utf-8?q?Schütt?= <schuett at gmail.com>,
Thorsten =?utf-8?q?Schütt?= <schuett at gmail.com>,
Thorsten =?utf-8?q?Schütt?= <schuett at gmail.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/118865 at github.com>
================
@@ -93,9 +147,14 @@ define <8 x i16> @abdu_const_bothhigh() {
}
define <8 x i16> @abdu_undef(<8 x i16> %src1) {
-; CHECK-LABEL: abdu_undef:
-; CHECK: // %bb.0:
-; CHECK-NEXT: ret
+; CHECK-SD-LABEL: abdu_undef:
+; CHECK-SD: // %bb.0:
+; CHECK-SD-NEXT: ret
+;
+; CHECK-GI-LABEL: abdu_undef:
+; CHECK-GI: // %bb.0:
+; CHECK-GI-NEXT: uabd v0.8h, v0.8h, v0.8h
----------------
arsenm wrote:
undef -> undef or undef -> zero, this is only a missed optimization (that should have already folded in the IR). It's not wrong or a problem for this combine to deal with
https://github.com/llvm/llvm-project/pull/118865
More information about the llvm-commits
mailing list