[llvm] [CodeGen] Avoid sinking vector comparisons during CodeGenPrepare (PR #113158)

via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 24 12:09:37 PDT 2024


================
@@ -502,6 +502,11 @@ class TargetLoweringBase {
     return HasMultipleConditionRegisters;
   }
 
+  /// Return true if multiple vector predicate registers are available.
+  bool hasMultipleVectorPredicateRegisters() const {
+    return HasMultipleVectorPredicateRegisters;
+  }
----------------
goldsteinn wrote:

Imo this should just take a type and be `hasMultiplePredicateRegister(Type * Ty)`

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


More information about the llvm-commits mailing list