[all-commits] [llvm/llvm-project] a292e7: Fix math-errno issue (#66381)
Zahira Ammarguellat via All-commits
all-commits at lists.llvm.org
Tue Sep 19 06:32:30 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a292e7edf8b2fc51d3e86a96ff5dff45d16bd264
https://github.com/llvm/llvm-project/commit/a292e7edf8b2fc51d3e86a96ff5dff45d16bd264
Author: Zahira Ammarguellat <zahira.ammarguellat at intel.com>
Date: 2023-09-19 (Tue, 19 Sep 2023)
Changed paths:
M clang/lib/CodeGen/CGBuiltin.cpp
M clang/test/CodeGen/math-builtins.c
M clang/test/CodeGen/math-libcalls.c
Log Message:
-----------
Fix math-errno issue (#66381)
Update handling of math errno. This change updates the logic for
generation of math intrinics in place of math library function calls.
The previous logic https://reviews.llvm.org/D151834 was incorrectly
using intrinsics when math errno handling was needed at optimization
levels above -O0.
This also fixes issue mentioned in https://reviews.llvm.org/D151834 by
@uabelho
This is joint work with @andykaylor Andy.
More information about the All-commits
mailing list