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

Mel Chen via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 14 07:57:08 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());
----------------
Mel-Chen wrote:

This is not correct. getRecurrenceType() can not tell if this recurrence pattern is select(icmp()) or select(fcmp()). I mentioned this in the https://github.com/llvm/llvm-project/pull/118777#discussion_r1901565850. 

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


More information about the llvm-commits mailing list