Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Flang] Change fir.divc to perform library call rather than generate …
…inline operations. Currently `fir.divc` is always lowered to a sequence of llvm operations to perform complex division, however this causes issues for extreme values when the calculations overflow. While this behaviour would be fine at -Ofast, this is currently the default at all levels. This patch changes `fir.divc` to lower to a library call instead, except for when KIND=3 as there is no appropriate library call for this case. Reviewed By: vzakhari Differential Revision: https://reviews.llvm.org/D145808
- Loading branch information
Sacha Ballantyne
authored and
Sacha Ballantyne
committed
Apr 4, 2023
1 parent
0109f8d
commit a7bb8e2
Showing
2 changed files
with
100 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters