Diff Detail
Diff Detail
Event Timeline
Comment Actions
To reduce the number of cases to inspect when looking at something that looks like a min / max. I was working on matching some different versions of min and max instructions with varying NaN behavior, and kept writing patterns permuting the operands for the different cases. Plus in the bug I noticed the temporary variable changed the IR, so this seems like a basic missing canonicalization. Also ordered compares are more 'normal' and seem to be more popular and understood in the backends, so it seems preferable to us them when possible.
Comment Actions
Thanks, LGTM.
test/Transforms/InstCombine/unordered-fcmp-select.ll | ||
---|---|---|
127 | Please remove unnecessary attributes. |
Please remove unnecessary attributes.