Changes from Git (git http://labmaster3.local/git/llvm-project.git)


  1. [CodeGen] Use CreateFNeg in buildFMulAdd (details)
  2. [CodeGen] Use IRBuilder::CreateFNeg for __builtin_conj (details)
  3. [X86] Add test case for PR44412. NFC (details)
Commit 8b23b2bbd9622c5f079a71c7078d167052f6a70c by craig.topper
[CodeGen] Use CreateFNeg in buildFMulAdd
We have an fneg instruction now and should use it instead of the fsub
-0.0 idiom. Looks like we had no test that showed that we handled the
negation cases here so I've added new tests.
Differential Revision:
The file was modifiedclang/lib/CodeGen/CGExprScalar.cpp
The file was modifiedclang/test/CodeGen/fp-contract-pragma.cpp
Commit 70f8dd4cf604b2be3488895ef0d261154c1c1124 by craig.topper
[CodeGen] Use IRBuilder::CreateFNeg for __builtin_conj
This replaces the fsub -0.0 idiom with an fneg instruction. We didn't
see to have a test that showed the current codegen. Just some tests for
constant folding and a test that was only checking the declare lines for
libcalls. The latter just checked that we did not have a declare for
@conj when using __builtin_conj.
Differential Revision:
The file was addedclang/test/CodeGen/complex-builtins-2.c
The file was modifiedclang/lib/CodeGen/CGBuiltin.cpp
Commit 6185dc0eb3ad35e1f85f2ab1038ca978563099f4 by craig.topper
[X86] Add test case for PR44412. NFC
The file was addedllvm/test/CodeGen/X86/pr44412.ll