llvm-project/llvm/lib/Transforms/InstCombine
Hirochika Matsumoto a3cffc1150 [InstCombine] Fold (ctpop(X) == 1) | (X == 0) into ctpop(X) < 2
https://alive2.llvm.org/ce/z/94yRMN

Fixes #54177

Differential Revision: https://reviews.llvm.org/D122077
2022-03-29 11:30:06 -04:00
..
CMakeLists.txt llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
InstCombineAddSub.cpp [NFCI] Fix set-but-unused warning in InstCombineAddSub.cpp 2022-03-24 08:33:40 +01:00
InstCombineAndOrXor.cpp [InstCombine] Fold (ctpop(X) == 1) | (X == 0) into ctpop(X) < 2 2022-03-29 11:30:06 -04:00
InstCombineAtomicRMW.cpp Cleanup includes: Transform/Scalar 2022-03-03 07:56:34 +01:00
InstCombineCalls.cpp [InstCombine] Remove call to getPointerElementType() 2022-03-29 16:52:29 +02:00
InstCombineCasts.cpp Cleanup includes: Transform/Scalar 2022-03-03 07:56:34 +01:00
InstCombineCompares.cpp [InstCombine] Add general constant support to eq/ne icmp(add(X,C1),add(Y,C2)) -> icmp(add(X,C1-C2),Y) fold 2022-03-15 14:17:38 +00:00
InstCombineInternal.h [InstCombine] Fold select based logic of fcmps with same operands when FMF is present. 2022-03-14 14:45:07 -07:00
InstCombineLoadStoreAlloca.cpp Cleanup includes: Transform/Scalar 2022-03-03 07:56:34 +01:00
InstCombineMulDivRem.cpp Cleanup includes: Transform/Scalar 2022-03-03 07:56:34 +01:00
InstCombineNegator.cpp [InstCombine] Fold sub(Y,and(lshr(X,C),1)) --> add(ashr(shl(X,(BW-1)-C),BW-1),Y) (PR53610) 2022-02-15 13:24:20 +00:00
InstCombinePHI.cpp Reapply [InstCombine] Support switch in phi to cond fold 2022-03-17 10:03:09 +01:00
InstCombineSelect.cpp [InstCombine] Fold two select patterns into and-or 2022-03-28 16:07:55 -04:00
InstCombineShifts.cpp [InstCombine] try to narrow shifted bswap-of-zext (2nd try) 2022-03-23 11:28:37 -04:00
InstCombineSimplifyDemanded.cpp [InstCombine] SimplifyDemandedUseBits - remove ashr node if we only demand known sign bits 2022-03-25 15:39:08 +00:00
InstCombineVectorOps.cpp [InstCombine] merge shuffled vector negate and multiply 2022-03-24 10:25:16 -04:00
InstructionCombining.cpp [InstCombine] Sink instructions with multiple users in a successor block. 2022-03-18 11:53:45 +08:00