summaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
AgeCommit message (Expand)Author
2025-07-02[InstCombine] Fold icmp of gep chain with base (#144065)Nikita Popov
2025-07-01[InstCombine] Fix use after freeNikita Popov
2025-07-01[InstCombine] Rewrite multi-use GEPs when simplifying comparison (#146100)Nikita Popov
2025-06-23[InstCombine] Fold `ceil(X / (2 ^ C)) == 0` -> `X == 0` (#143683)Iris Shi
2025-06-16[InstCombine] fold icmp with add/sub instructions having the same operands (#...Acthinks Yang
2025-06-03[ValueTracking] Make Depth last default arg (NFC) (#142384)Ramkumar Ramachandra
2025-05-22[InstCombine] Fix comment typo that incorrectly described fold (NFC) (#141105)AZero13
2025-05-13[InstCombine] Introduce `foldICmpBinOpWithConstantViaTruthTable` foldingAntonio Frighetto
2025-04-30Fix MSVC "not all control paths return a value" warning. NFC.Simon Pilgrim
2025-04-30[InstCombine] Offset both sides of an equality icmp (#134086)Yingwei Zheng
2025-04-23InstCombine: Avoid counting uses of constants (#136566)Matt Arsenault
2025-04-02[IR] Add helper `CmpPredicate::dropSameSign` (#134071)Yingwei Zheng
2025-03-28[InstCombine] Fold `(trunc nuw A to i1) == (trunc nuw B to i1)` to `A == B` (...Veera
2025-02-27Reapply [CaptureTracking][FunctionAttrs] Add support for CaptureInfo (#125880...Nikita Popov
2025-02-19Revert "Reapply [CaptureTracking][FunctionAttrs] Add support for CaptureInfo ...Nico Weber
2025-02-16[InstCombine] Do not keep samesign when speculatively executing icmps (#127007)Yingwei Zheng
2025-02-14Reapply [CaptureTracking][FunctionAttrs] Add support for CaptureInfo (#125880)Nikita Popov
2025-02-13Revert "[CaptureTracking][FunctionAttrs] Add support for CaptureInfo (#125880)"Nikita Popov
2025-02-13[CaptureTracking][FunctionAttrs] Add support for CaptureInfo (#125880)Nikita Popov
2025-02-06[InstCombine] simplify `icmp pred x, ~x` (#73990)hanbeom
2025-02-04[InstCombine] Handle isSubnormalOrZero idiom (#125501)Yingwei Zheng
2025-02-01[InstCombine] Check nowrap flags when folding comparison of GEPs with the sam...Yingwei Zheng
2025-02-01[ValueTracking] Use `SimplifyQuery` in `isKnownNonEqual` (#124942)Yingwei Zheng
2025-01-31[InstCombine] Perform some cleanups, add some testsDavid Majnemer
2025-01-18[InstCombine] fold unsigned predicates on srem result (#122520)Jacob Young
2025-01-08[ValueTracking] Move `getFlippedStrictnessPredicateAndConstant` into ValueTra...Yingwei Zheng
2025-01-07[InstCombine] Compute result directly on APIntsNikita Popov
2025-01-04[InstCombine] Check no wrap flags before folding icmp of GEPs with same indic...Yingwei Zheng
2024-12-13PatternMatch: migrate to CmpPredicate (#118534)Ramkumar Ramachandra
2024-12-08[InstCombine] Fix type mismatch in `foldICmpBinOpEqualityWithConstant` (#119068)Yingwei Zheng
2024-12-06Reapply [InstCombine] Support gep nuw in icmp folds (#118472)Nikita Popov
2024-12-05[InstCombine] Fold `icmp spred (X *nsw Z), (Y *nsw Z) -> icmp pred Z, 0` if `...Yingwei Zheng
2024-12-04Revert "[InstCombine] Support gep nuw in icmp folds" (#118698)Vitaly Buka
2024-12-03IR: introduce struct with CmpInst::Predicate and samesign (#116867)Ramkumar Ramachandra
2024-12-03[InstCombine] Support gep nuw in icmp folds (#118472)Nikita Popov
2024-12-03[InstCombine] Support nusw in icmp of two geps with same baseNikita Popov
2024-12-03[InstCombine] Support nusw in icmp of gep with baseNikita Popov
2024-12-03[InstCombine] Fold `icmp spred (and X, highmask), C1` into `icmp spred X, C2`...Yingwei Zheng
2024-11-25[PatternMatch] Introduce m_c_Select (#114328)David Green
2024-11-21[InstCombine] Remove unused variable in InstCombineCompares.cpp (NFC)Jie Fu
2024-11-21[InstCombine] Fold zext(X) + C2 pred C -> X + C3 pred C4 (#110511)Yingwei Zheng
2024-11-14[InstCombine] Use KnownBits predicate helpers (#115874)Nikita Popov
2024-11-11[InstCombine] Fold (sext(a) & c1) == c2 to (a & c3) == trunc(c2) (#112646)Lee Wei
2024-11-03[InstCombine] Remove unused includes (NFC) (#114709)Kazu Hirata
2024-10-28[InstCombine] Optimize away certain additions using modular arithmeticDavid Majnemer
2024-10-23Reapply "[InstCombine] Folding `(icmp eq/ne (and X, -P2), INT_MIN)`" (#111236)Noah Goldstein
2024-10-19[InstCombine] Simplify code with SmallMapVector::operator[] (NFC) (#113022)Kazu Hirata
2024-10-17[LLVM] Make more use of IRBuilder::CreateIntrinsic. NFC. (#112706)Jay Foad
2024-10-17[InstCombine] Set `samesign` when converting signed predicates into unsigned ...Yingwei Zheng
2024-10-16[InstCombine] Drop `samesign` in InstCombine (#112480)Yingwei Zheng