[llvm] IVDesc: unify RecurKinds IAnyOf and FAnyOf (PR #118393)

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 14 08:16:09 PST 2025


================
@@ -209,7 +207,9 @@ class RecurrenceDescriptor {
 
   RecurKind getRecurrenceKind() const { return Kind; }
 
-  unsigned getOpcode() const { return getOpcode(getRecurrenceKind()); }
+  unsigned getOpcode() const {
+    return getOpcode(getRecurrenceKind(), getRecurrenceType());
----------------
david-arm wrote:

Perhaps you've mentioned it before on this patch in December, but it looks like it might be something to do with `NumCmpSelectPatternInst` still being a sensible value and so the reduction is not being discarded.

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


More information about the llvm-commits mailing list