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

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 25 02:49:12 PDT 2024


================
@@ -2389,7 +2389,7 @@ class TargetLoweringBase {
                                                EVT VT) const {
     // If a target has multiple condition registers, then it likely has logical
     // operations on those registers.
-    if (hasMultipleConditionRegisters())
+    if (hasMultiplePredicateRegisters(VT))
----------------
jayfoad wrote:

Of course it would help if the comment on this function said what `VT` is supposed to be.

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


More information about the llvm-commits mailing list