[llvm] [LLVM][InstCombine] Add simplification of SVE compare intrinsics. (PR #211249)
Matthew Devereau via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 29 03:38:42 PDT 2026
================
@@ -0,0 +1,309 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 6
+; RUN: opt -S -passes=instcombine < %s | FileCheck %s
+
+target triple = "aarch64-unknown-linux-gnu"
+
+; The following tests verify the mechanics of simplification. The operation is
+; not important beyond being commutative.
+
+define <vscale x 4 x i1> @cannonicalise_constant_to_rhs(<vscale x 4 x i1> %pg, <vscale x 4 x i32> %a) #0 {
----------------
MDevereau wrote:
```suggestion
define <vscale x 4 x i1> @canonicalise_constant_to_rhs(<vscale x 4 x i1> %pg, <vscale x 4 x i32> %a) #0 {
```
Please don't turn the constants into ordnance
https://github.com/llvm/llvm-project/pull/211249
More information about the llvm-commits
mailing list