aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineModuleInfo.cpp
diff options
context:
space:
mode:
authorPeter Steinfeld <psteinfeld@nvidia.com>2022-04-26 15:21:03 -0700
committerPeter Steinfeld <psteinfeld@nvidia.com>2022-04-27 14:50:00 -0700
commit9df99d8ac22fe712259ce1a973fbc29c8362ab48 (patch)
treed26bb5de47a0139a1faf4f2956dfe16b9b7d2dc7 /llvm/lib/CodeGen/MachineModuleInfo.cpp
parent1747a93b28c3ee7de45c4591186b0972f799ba13 (diff)
downloadllvm-9df99d8ac22fe712259ce1a973fbc29c8362ab48.zip
llvm-9df99d8ac22fe712259ce1a973fbc29c8362ab48.tar.gz
llvm-9df99d8ac22fe712259ce1a973fbc29c8362ab48.tar.bz2
[flang] Fix MAXLOC/MINLOC when MASK is scalar .FALSE.
When passing a scalar .FALSE. as the MASK argument to MAXLOC, we were getting bad memory references. We were falling into the code intended when the MASK argument was missing. I fixed this by checking for a scalar MASK with a .FALSE. value and setting the result to all zeroes in that case. I also added tests for MAXLOC and MINLOC with scalar values of .TRUE. and .FALSE. for the MASK argument. I also special cased situations where the MASK argument is a scalar with a .TRUE. value and passed along a nullptr in such cases. Along the way, I eliminated the unused "chars" argument from the constructor for ExtremumLocAccumulator. Differential Revision: https://reviews.llvm.org/D124484
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp')
0 files changed, 0 insertions, 0 deletions