[flang] Fix overflow detection for folding SUM/PRODUCT
The overflow detection code in the templates that fold SUM and PRODUCT was checking for overflow before performing the reduction, not after. Fix and add tests. Differential Revision: https://reviews.llvm.org/D154374
Loading
Please sign in to comment