[llvm] IVDesc: unify RecurKinds IAnyOf and FAnyOf (PR #118393)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 20 06:58:39 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());
----------------
ayalz wrote:
If AnyOf is considered a boolean reduction, its opcode could be `select`, rather than `icmp` or `fcmp`. If it's considered an Or reduction, its opcode could be `or`.
Min/Max reductions, OTOH, are essentially cmp/select patterns.
https://github.com/llvm/llvm-project/pull/118393
More information about the llvm-commits
mailing list