aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorKarthik Senthil <karthik.senthil@intel.com>2022-11-04 10:33:45 -0400
committerSanjay Patel <spatel@rotateright.com>2022-11-04 10:39:37 -0400
commitd9c52c31a0fee22414bb4024ee5b203fe86ef5bb (patch)
tree840708bc29242cc7b7fc116bffc782fad98cd4d2 /flang/lib/Frontend/CompilerInvocation.cpp
parent710e34e1360710275662ad5b0bdc394570fb26d5 (diff)
downloadllvm-d9c52c31a0fee22414bb4024ee5b203fe86ef5bb.zip
llvm-d9c52c31a0fee22414bb4024ee5b203fe86ef5bb.tar.gz
llvm-d9c52c31a0fee22414bb4024ee5b203fe86ef5bb.tar.bz2
[LV][IVDescriptors] Fix recurrence identity element for FMin and FMax reductions
For a min and max reduction idioms, the identity (i.e. neutral) element should be datatype's highest and lowest possible values respectively. Current implementation in IVDescriptors incorrectly returns -Inf for FMin reduction and +Inf for FMax reduction. This patch fixes this bug which was causing incorrect reduction computation results in loops vectorized by LV. Differential Revision: https://reviews.llvm.org/D137220
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions