Commit df3fd41
committed
IRBuilder: Add FastMathFlags parameter to CreateMaxNum/CreateMinNum
In #112852, we claimed that
llvm.minnum and llvm.maxnum should treat +0.0>-0.0, while libc doesn't
require fmin(3)/fmax(3) for it.
Let's add FastMathFlags parameter to CreateMaxNum and CreateMinNum,
so that it can be used by CodeGenFunction::EmitBuiltinExpr of Clang.1 parent 88ff607 commit df3fd41
1 file changed
+10
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1005 | 1005 | | |
1006 | 1006 | | |
1007 | 1007 | | |
1008 | | - | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
1009 | 1011 | | |
1010 | 1012 | | |
1011 | | - | |
| 1013 | + | |
1012 | 1014 | | |
1013 | 1015 | | |
1014 | | - | |
| 1016 | + | |
1015 | 1017 | | |
1016 | 1018 | | |
1017 | 1019 | | |
1018 | | - | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
1019 | 1023 | | |
1020 | 1024 | | |
1021 | | - | |
| 1025 | + | |
1022 | 1026 | | |
1023 | 1027 | | |
1024 | | - | |
| 1028 | + | |
1025 | 1029 | | |
1026 | 1030 | | |
1027 | 1031 | | |
| |||
0 commit comments