[PATCH] D118787: [flang] Lower integer constant code for STOP stmt
Valentin Clement via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 2 09:48:05 PST 2022
clementval added inline comments.
================
Comment at: flang/test/Lower/stop-statement.f90:27
+ ! CHECK-DAG: %[[c42:.*]] = arith.constant 42 : i32
+ ! CHECK-DAG: %[[false:.*]] = arith.constant false
+ ! CHECK: fir.call @_Fortran{{.*}}StopStatement(%[[c42]], %[[false]], %[[false]])
----------------
kiranchandramohan wrote:
> Assuming the convert is removed by the canonicalize pass and that we don't have enough support for other types for the convert to be retained.
Not sure I follow your comment here. The output of `./bin/bbc -emit-fir` (without `--canonicalize `) is the following:
```
func @_QPss() {
%c42_i32 = arith.constant 42 : i32
%false = arith.constant false
%false_0 = arith.constant false
%0 = fir.call @_FortranAStopStatement(%c42_i32, %false, %false_0) : (i32, i1, i1) -> none
fir.unreachable
^bb1: // no predecessors
return
}
```
So there is no convert.. Do you have smth else?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D118787/new/
https://reviews.llvm.org/D118787
More information about the llvm-commits
mailing list