[flang-commits] [flang] [flang] Avoid optimizing min and max if not valid type (PR #134972)
Tom Eccles via flang-commits
flang-commits at lists.llvm.org
Wed Apr 9 02:32:03 PDT 2025
https://github.com/tblah commented:
Thank you for fixing this. The change looks good to me once you have added a test.
I would test this by checking that hlfir.min and hlfir.max are not modified by the pass for a few types that aren't integers or floating point. See `flang/test/HLFIR/minval-elemental.fir` for an example test for this pass.
https://github.com/llvm/llvm-project/pull/134972
More information about the flang-commits
mailing list