diff options
author | Sanjay Patel <spatel@rotateright.com> | 2022-08-20 08:33:46 -0400 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2022-08-20 10:16:06 -0400 |
commit | 2981a9490277a7920936d287c9703f0f7edef84b (patch) | |
tree | f63983d1e4b4c4f2fda878232f3d94999a7a3ebf /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | fa96383506e23f972b54f8c4aa6e74030dabd7a7 (diff) | |
download | llvm-2981a9490277a7920936d287c9703f0f7edef84b.zip llvm-2981a9490277a7920936d287c9703f0f7edef84b.tar.gz llvm-2981a9490277a7920936d287c9703f0f7edef84b.tar.bz2 |
[EarlyCSE][ConstantFolding] do not constant fold atan2(+/-0.0, +/-0.0), part 2
Follow-up to 7f1262a322c0d80f3. That patch avoided removing the
call, but it still allowed the constant-folded result. This
makes the behavior consistent with 1-arg libm folding: if the
call potentially raises an exception, then we just bail out.
It seems likely that there are other corner-cases like this,
but the tests are incomplete, so we have lived with these
discrepancies for a long time. This was untested before the
the constant folding was expanded in D127964.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions