[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


================
@@ -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))
----------------
david-arm wrote:

Ah yes, I think you might be right! I'd just assumed (probably wrongly) that VT was the result type. I've fixed this now.

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


More information about the llvm-commits mailing list