[llvm] [SPARC] Add TTI implementation for getPopcntSupport (PR #178843)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 9 00:53:41 PST 2026


================
@@ -0,0 +1,526 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
+; RUN: opt -passes=loop-idiom -mtriple=sparc -mattr=+v9,+popc -S < %s | FileCheck %s --check-prefixes=SPARC-CPOP
+; RUN: opt -passes=loop-idiom -mtriple=sparcv9 -mattr=+popc -S < %s | FileCheck %s --check-prefixes=SPARC64-CPOP
----------------
nikic wrote:

Are there differences between the SPARC-CPOP/SPARC64-CPOP lines? If no, or only for some functions it would be good to use a common check prefix to reduce the test size.

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


More information about the llvm-commits mailing list