llvm-project/llvm/lib/Transforms/InstCombine
Sanjay Patel 0f29e953b7 [InstCombine] canonicalize fneg with llvm.sin
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
2018-08-29 18:27:49 +00:00
..
CMakeLists.txt InstCombine/AMDGPU: Add dimension-aware image intrinsics to SimplifyDemanded 2018-06-21 13:37:31 +00:00
InstCombineAddSub.cpp [InstCombine] Extend (add (sext x), cst) --> (sext (add x, cst')) and (add (zext x), cst) --> (zext (add x, cst')) to work for vectors 2018-08-28 02:02:29 +00:00
InstCombineAndOrXor.cpp [InstCombine] Pull simple checks above a more complicated one. NFCI 2018-08-21 19:17:00 +00:00
InstCombineCalls.cpp [InstCombine] canonicalize fneg with llvm.sin 2018-08-29 18:27:49 +00:00
InstCombineCasts.cpp Fix InstCombine address space assert 2018-07-31 15:53:03 +00:00
InstCombineCompares.cpp [InstCombine] Add splat vector constant support to foldICmpAddOpConst. 2018-08-20 23:04:25 +00:00
InstCombineInternal.h [InstCombine] Add splat vector constant support to foldICmpAddOpConst. 2018-08-20 23:04:25 +00:00
InstCombineLoadStoreAlloca.cpp [Local] Make DoesKMove required for combineMetadata. 2018-08-24 11:40:04 +00:00
InstCombineMulDivRem.cpp [InstCombine] fold udiv with common factor from muls with nuw 2018-07-26 19:22:41 +00:00
InstCombinePHI.cpp [IR] Replace `isa<TerminatorInst>` with `isTerminator()`. 2018-08-26 09:51:22 +00:00
InstCombineSelect.cpp [InstCombine] Replace two calls to getNumUses() with !hasNUsesOrMore 2018-08-29 17:09:21 +00:00
InstCombineShifts.cpp Remove trailing space 2018-07-30 19:41:25 +00:00
InstCombineSimplifyDemanded.cpp [X86] Remove and autoupgrade the scalar fma intrinsics with masking. 2018-07-12 00:29:56 +00:00
InstCombineTables.td InstCombine/AMDGPU: Add dimension-aware image intrinsics to SimplifyDemanded 2018-06-21 13:37:31 +00:00
InstCombineVectorOps.cpp [InstCombine] move declarations closer to uses; NFC 2018-08-29 14:42:12 +00:00
InstructionCombining.cpp [InstCombine] allow shuffle+binop canonicalization with widening shuffles 2018-08-27 22:41:44 +00:00
LLVMBuild.txt