summaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
AgeCommit message (Expand)Author
2025-10-23[InstCombine] Add support for ptrtoaddr in pointer difference folds (#164428)Nikita Popov
2025-10-10[NFC][InstCombine] Make use of `unknown` profile info clear in the API name (...Mircea Trofin
2025-09-29[InstCombine] Set !prof metadata on Selects identified by add.ll test (#158743)Alan Zhao
2025-09-17[PatternMatch] Introduce match functor (NFC) (#159386)Ramkumar Ramachandra
2025-09-12[InstCombine] Revert FSub optimization from #157757 (#158315)Vedant Paranjape
2025-09-12[InstCombine] Enable FAdd simplifications when user can ignore sign bit (#157...Vedant Paranjape
2025-09-12[InstCombine] Fold `min(X+1, Y) - min(X, Y) --> zext X < Y` (#157782)benwu25
2025-09-10[InstCombine] Use intersectForOffsetAdd() in CommonPointerBase (#157851)Nikita Popov
2025-07-23[PatternMatch] Add support for capture-and-match (NFC) (#149825)Nikita Popov
2025-07-23[InstCombine] Add limit for expansion of gep chains (#147065)Nikita Popov
2025-07-08[InstCombine] Avoid unprofitable add with remainder transform (#147319)Nikita Popov
2025-07-04[InstCombine] Refine nuw propagation in `OptimizePointerDifference` (#147059)Yingwei Zheng
2025-06-30[InstCombine] Pull vector reverse through fneg (#146349)Luke Lau
2025-06-30[InstCombine] Pull unary shuffles through fneg/fabs (#144933)Luke Lau
2025-06-19[InstCombine] Optimize sub(sext(add(x,y)),sext(add(x,z))). (#144174)Slava Zakharin
2025-06-17InstCombine: improve optimizations for ceiling division with no overflow (#14...gaynor-anthropic
2025-06-13[InstCombine] Extract EmitGEPOffsets() helper (NFC)Nikita Popov
2025-06-13[InstCombine] Restore splat gep support in OptimizePointerDifference() (#143906)Nikita Popov
2025-06-12[InstCombine] Export logic for common base pointer (NFC)Nikita Popov
2025-06-12[InstCombine] Ensure Safe Handling of Flags in foldFNegIntoConstant (#94148)SahilPatidar
2025-06-10[InstCombine] Preserve flags for difference of gep chains (#143488)Nikita Popov
2025-06-10[InstCombine] Support nested GEPs in OptimizePointerDifference (#142958)Nikita Popov
2025-06-03[ValueTracking] Make Depth last default arg (NFC) (#142384)Ramkumar Ramachandra
2025-01-12[InstCombine] Fold (add (add A, 1), (sext (icmp ne A, 0))) to call umax(A, 1)...Ruhung
2025-01-06[InstCombine] Handle commuted pattern for `((X s/ C1) << C2) + X` (#121737)Yingwei Zheng
2025-01-06[IRBuilder] Refactor FMF interface (#121657)Yingwei Zheng
2024-12-13PatternMatch: migrate to CmpPredicate (#118534)Ramkumar Ramachandra
2024-12-10[InstCombine] Fold `(X & C1) - (X & C2) --> X & (C1 ^ C2)` if `(C1 & C2) == C...fengfeng
2024-12-04[InstCombine] Fix use after freeNikita Popov
2024-12-04[InstCombine] Preserve nuw in OptimizePointerDifferenceNikita Popov
2024-12-01[InstCombine] Fold `umax(X, C) + -C` into `usub.sat(X, C)` (#118195)Yingwei Zheng
2024-11-25[PatternMatch] Introduce m_c_Select (#114328)David Green
2024-11-19[InstCombine] Fix APInt ctor assertionNikita Popov
2024-11-18[InstCombine] Re-queue users of phi when nsw/nuw flags of add are inferred (#...Yingwei Zheng
2024-11-15[InstCombine] fold `sub(zext(ptrtoint),zext(ptrtoint))` (#115369)Nikolay Panchenko
2024-10-11[NFC] Rename `Intrinsic::getDeclaration` to `getOrInsertDeclaration` (#111752)Rahul Joshi
2024-08-27[InstCombine] Simplify `(add/sub (sub/add) (sub/add))` irrelivant of use-countNoah Goldstein
2024-08-21[InstCombine] Fold `sext(A < B) + zext(A > B)` into `ucmp/scmp(A, B)` (#103833)Volodymyr Vasylkun
2024-08-21[InstCombine] Remove some of the complexity-based canonicalization (#91185)Nikita Popov
2024-08-16[InstCombine] Preserve nsw in A + -B foldNikita Popov
2024-07-29[PatternMatch] Use `m_SpecificCmp` matchers. NFC. (#100878)Yingwei Zheng
2024-07-12[InstCombine] Fold (zext (X +nuw C)) + -C --> zext(X) when zext has additiona...Craig Topper
2024-06-08[InstCombine] Preserve the nsw/nuw flags for (X | Op01C) + Op1C --> X + (Op01...csstormq
2024-06-01[InstCombine] Fold `(add X, (sext/zext (icmp eq X, C)))`Noah Goldstein
2024-05-09[InstCombine] Handle more commuted cases in matchesSquareSum()Nikita Popov
2024-04-26[InstCombine] Fix use-after-free in OptimizePointerDifference()Nikita Popov
2024-04-26[InstCombine] Allow multi-use OptimizePointerDifference() with two GEPs (#90017)Nikita Popov
2024-04-25[InstCombine] Fold fneg over select (#89947)Yingwei Zheng
2024-04-24[InstCombine] Simplify `(X / C0) * C1 + (X % C0) * C2` to `(X / C0) * (C1 - C...Yingwei Zheng
2024-04-19[InstCombine] Regard zext nneg as sext when folding add(zext neg(add)) (#88887)ZelinMa557