[all-commits] [llvm/llvm-project] 06b4ce: [flang] Add fir.select_type conversion to if-then-...
Valentin Clement (バレンタイン クレメン) via All-commits
all-commits at lists.llvm.org
Mon Nov 21 01:02:01 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 06b4ce66d831206a20f0886bfd8e7a1998b53a2e
https://github.com/llvm/llvm-project/commit/06b4ce66d831206a20f0886bfd8e7a1998b53a2e
Author: Valentin Clement <clementval at gmail.com>
Date: 2022-11-21 (Mon, 21 Nov 2022)
Changed paths:
M flang/include/flang/Optimizer/Transforms/Passes.td
M flang/lib/Optimizer/Dialect/FIROps.cpp
M flang/lib/Optimizer/Dialect/FIRType.cpp
M flang/lib/Optimizer/Transforms/ControlFlowConverter.cpp
M flang/test/Lower/select-type.f90
Log Message:
-----------
[flang] Add fir.select_type conversion to if-then-else ladder
Convert fir.select_type operation to an if-then-else ladder.
The type guards are sorted before the conversion so it follows the
execution of SELECT TYPE construct as mentioned in 11.1.11.2 point 4
of the Fortran standard.
Depends on D138279
Reviewed By: jeanPerier
Differential Revision: https://reviews.llvm.org/D138280
More information about the All-commits
mailing list