[all-commits] [llvm/llvm-project] 242bb0: [flang] Fix a bug with simplified minloc that trea...
SachaBallantyne via All-commits
all-commits at lists.llvm.org
Tue Feb 28 09:15:50 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 242bb0b65249a891809c8b03d2a9714ab225e386
https://github.com/llvm/llvm-project/commit/242bb0b65249a891809c8b03d2a9714ab225e386
Author: Sacha Ballantyne <Sacha.Ballantyne at arm.com>
Date: 2023-02-28 (Tue, 28 Feb 2023)
Changed paths:
M flang/lib/Optimizer/Transforms/SimplifyIntrinsics.cpp
M flang/test/Transforms/simplifyintrinsics.fir
Log Message:
-----------
[flang] Fix a bug with simplified minloc that treated logicals with even values > 1 as 0
Previously the mask would be loaded as the appropriate integer type and cast to I1 to pass to
fir.if, however this truncates the integer and so would cast 6 to 0. By loading values as logicals
and casting to I1 this problem is avoided.
Reviewed By: Leporacanthicus
Differential Revision: https://reviews.llvm.org/D144974
More information about the All-commits
mailing list