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

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 30 08:21:55 PDT 2024


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

OK, I've added an extra EVT argument because if I understood you correctly from your other comment you'd prefer me to have a single function called from both `shouldNormalizeToSelectSequence` and `sinkCmpExpression`. In this case `shouldNormalizeToSelectSequence` is in DAGCombiner and works with EVTs rather than Types.

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


More information about the llvm-commits mailing list