[all-commits] [llvm/llvm-project] 98ecc3: [Flang] Fix for Any/All simplification to properly...
SachaBallantyne via All-commits
all-commits at lists.llvm.org
Tue Feb 14 02:36:53 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 98ecc3ac77a9a994847e63b59b622f05c1829df4
https://github.com/llvm/llvm-project/commit/98ecc3ac77a9a994847e63b59b622f05c1829df4
Author: Sacha Ballantyne <Sacha.Ballantyne at arm.com>
Date: 2023-02-14 (Tue, 14 Feb 2023)
Changed paths:
M flang/lib/Optimizer/Transforms/SimplifyIntrinsics.cpp
M flang/test/Transforms/simplifyintrinsics.fir
Log Message:
-----------
[Flang] Fix for Any/All simplification to properly propogate the inital value
When rank > 1, the inital value would be lost on inner loops, leading to the wrong
value to be returned, e.g. This would return T. This patch fixes this to use the correct
inital value for all cases.
```
Integer :: m(0,10)
Any(m .eq 0)
```
Reviewed By: vdonaldson
Differential Revision: https://reviews.llvm.org/D143899
More information about the All-commits
mailing list