This is a follow-up to rL339604 which did the same transform for a sin libcall. The handling of intrinsics vs. libcalls is unfortunately scattered, so I'm just adding this next to the existing transform for llvm.cos for now. This should resolve PR38458: https://bugs.llvm.org/show_bug.cgi?id=38458 If the call was already negated, the negates will cancel each other out. llvm-svn: 340952 |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| InstCombineAddSub.cpp | ||
| InstCombineAndOrXor.cpp | ||
| InstCombineCalls.cpp | ||
| InstCombineCasts.cpp | ||
| InstCombineCompares.cpp | ||
| InstCombineInternal.h | ||
| InstCombineLoadStoreAlloca.cpp | ||
| InstCombineMulDivRem.cpp | ||
| InstCombinePHI.cpp | ||
| InstCombineSelect.cpp | ||
| InstCombineShifts.cpp | ||
| InstCombineSimplifyDemanded.cpp | ||
| InstCombineTables.td | ||
| InstCombineVectorOps.cpp | ||
| InstructionCombining.cpp | ||
| LLVMBuild.txt | ||