llvm-project/llvm/lib/Transforms/InstCombine
Roman Lebedev d669758d84 [InstCombine] foldICmpWithLowBitMaskedVal(): 'icmp sgt/sle': avoid miscompiles
A precondition 'x != 0' was forgotten by me:
https://rise4fun.com/Alive/JFNP
https://rise4fun.com/Alive/jHvL

These 4 folds with non-constants could be re-enabled,
but for now let's go for the simplest solution.

https://bugs.llvm.org/show_bug.cgi?id=42198

llvm-svn: 362911
2019-06-09 16:30:42 +00:00
..
CMakeLists.txt [InstCombine] Optimize `atomicrmw <op>, 0` into `load atomic` when possible 2019-02-07 21:27:23 +00:00
InstCombineAddSub.cpp [InstCombine] 'C-(C2-X) --> X+(C-C2)' constant-fold 2019-05-31 09:47:16 +00:00
InstCombineAndOrXor.cpp [InstCombine] try harder to form rotate (funnel shift) (PR20750) 2019-05-13 17:28:19 +00:00
InstCombineAtomicRMW.cpp [InstCombine] Extend saturating idempotent atomicrmw transform to FP 2019-03-01 19:50:36 +00:00
InstCombineCalls.cpp InstCombine: correctly change byval type attribute alongside call args. 2019-06-05 20:38:17 +00:00
InstCombineCasts.cpp [InstCombine] simplify code for bitcast of insertelement; NFC 2019-06-05 21:26:52 +00:00
InstCombineCompares.cpp [InstCombine] foldICmpWithLowBitMaskedVal(): 'icmp sgt/sle': avoid miscompiles 2019-06-09 16:30:42 +00:00
InstCombineInternal.h [InstCombine] Refactor OptimizeOverflowCheck; NFCI 2019-05-26 11:43:37 +00:00
InstCombineLoadStoreAlloca.cpp Use the DataLayout::typeSizeEqualsStoreSize helper. NFC 2019-05-24 09:20:20 +00:00
InstCombineMulDivRem.cpp [InstCombine] canonicalize fdiv after fmul if reassociation is allowed 2019-04-15 13:23:38 +00:00
InstCombinePHI.cpp [opaque pointer types] Pass value type to LoadInst creation. 2019-02-01 20:44:24 +00:00
InstCombineSelect.cpp [InstCombine] change canonicalization to fabs() to use FMF on fneg 2019-06-09 16:22:01 +00:00
InstCombineShifts.cpp [InstCombine] canShiftBinOpWithConstantRHS(): drop bogus signbit check 2019-05-17 15:52:49 +00:00
InstCombineSimplifyDemanded.cpp [InstCombine] Limit a vector demanded elts rule which was producing invalid IR. 2019-04-30 23:09:26 +00:00
InstCombineTables.td InstCombine/AMDGPU: Add dimension-aware image intrinsics to SimplifyDemanded 2018-06-21 13:37:31 +00:00
InstCombineVectorOps.cpp [InstCombine] prevent crashing with invalid extractelement index 2019-05-26 14:03:50 +00:00
InstructionCombining.cpp [InstCombine] Factor out unreachable inst idiom creation [NFC] 2019-04-17 17:37:58 +00:00
LLVMBuild.txt Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00