aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
AgeCommit message (Expand)AuthorFilesLines
2025-09-12[InstCombine] Added optimisation for trunc (Negated Pow2 >> x) to i1 (#157998)kper1-4/+10
2025-09-10[InstCombine] Added optimisation for trunc (Pow2 >> x) to i1 (#157030)kper1-0/+21
2025-08-22[InstComb] Allow more user for (add (ptrtoint %B), %O) to GEP transform. (#15...Florian Hahn1-2/+10
2025-08-21[InstComb] Fold inttoptr (add (ptrtoint %B), %O) -> GEP for ICMP users. (#153...Florian Hahn1-0/+13
2025-08-15[PatternMatch] Allow `m_ConstantInt` to match integer splats (#153692)zGoldthorpe1-6/+5
2025-07-28[InstCombine] Let shrinkSplatShuffle act on vectors of different lengths (#14...Adar Dagan1-2/+6
2025-06-16[InstCombine] Combine trunc (lshr X, BW-1) to i1 --> icmp slt X, 0 (#142593) ...mayanksolanki3931-0/+6
2025-06-16[InstCombine] Propagate FMF from fptrunc when folding `fptrunc fabs(X) -> fab...Yingwei Zheng1-1/+3
2025-06-10[NFC][LLVM] Refactor IRBuilder::Create{VScale,ElementCount,TypeSize}. (#142803)Paul Walker1-16/+8
2025-06-03[ValueTracking] Make Depth last default arg (NFC) (#142384)Ramkumar Ramachandra1-21/+19
2025-05-13[InstCombine] Narrow trunc(lshr) in more cases (#139645)Usman Nadeem1-6/+16
2025-04-28[InstCombine] Support ptrtoint of gep folds for chain of geps (#137323)Nikita Popov1-23/+38
2025-03-27[InstCombine] Handle scalable splats of constants in getMinimumFPType (#132960)Luke Lau1-6/+6
2025-01-06[IRBuilder] Refactor FMF interface (#121657)Yingwei Zheng1-8/+8
2024-12-08[InstCombine] Fold trunc nuw/nsw X to i1 -> true IFF X != 0 (#119131)Andreas Jonson1-0/+5
2024-12-06[InstCombine] Make fptrunc combine use intersection of fast math flags (#118808)John Brawn1-5/+6
2024-12-05[InstCombine] Remove nusw handling in ptrtoint of gep fold (NFCI) (#118804)Nikita Popov1-4/+1
2024-11-25[InstCombine] Remove SPF guard for trunc transforms (#117535)Nikita Popov1-9/+0
2024-10-11[NFC] Rename `Intrinsic::getDeclaration` to `getOrInsertDeclaration` (#111752)Rahul Joshi1-7/+8
2024-09-28[InstCombine] foldVecExtTruncToExtElt - extend to handle trunc(lshr(extractel...Simon Pilgrim1-30/+67
2024-09-17[InstCombine] Avoid simplifying bitcast of undef to a zeroinitializer vector ...Alex MacLean1-0/+5
2024-08-21[InstCombine] Extend Fold of Zero-extended Bit Test (#102100)Marius Kamp1-6/+13
2024-08-01[InstCombine] Recognize copysign idioms (#101324)Yingwei Zheng1-0/+24
2024-07-25Fix unused variable warning. NFC.Simon Pilgrim1-1/+1
2024-07-25Remove the `x86_mmx` IR type. (#98505)James Y Knight1-7/+0
2024-07-12Revert "[InstCombine] Generalize ptrtoint(gep) fold (NFC)"Nikita Popov1-21/+4
2024-07-12[InstCombine] Generalize ptrtoint(gep) fold (NFC)Nikita Popov1-4/+21
2024-07-11[InstCombine] More precise nuw preservation in ptrtoint of gep foldNikita Popov1-1/+3
2024-06-18[InstCombine] Avoid use of ConstantExpr::getShl()Nikita Popov1-3/+3
2024-06-17[InstCombine] Don't preserve context across divNikita Popov1-4/+6
2024-05-20[InstCombine] Fold pointer adding in integer to arithmetic add (#91596)Monad1-4/+16
2024-04-30[InstCombine] Fold `trunc nuw/nsw (x xor y) to i1` to `x != y` (#90408)Monad1-0/+6
2024-04-25[InstCombine] Extract logic for "emit offset and rewrite gep" (NFC)Nikita Popov1-3/+3
2024-04-18[IR][PatternMatch] Only accept poison in getSplatValue() (#89159)Nikita Popov1-1/+1
2024-04-17[InstCombine] Use `auto *` instead of `auto` in `visitSIToFP`; NFCNoah Goldstein1-1/+1
2024-04-16[InstCombine] Add canonicalization of `sitofp` -> `uitofp nneg`Noah Goldstein1-2/+16
2024-04-11[InstCombine] Infer nsw/nuw for trunc (#87910)Yingwei Zheng1-1/+14
2024-03-29[InstCombine] Remove the canonicalization of `trunc` to `i1` (#84628)Monad1-11/+18
2024-03-20Revert "[InstCombine] Canonicalize `(sitofp x)` -> `(uitofp x)` if `x >= 0`"Noah Goldstein1-5/+1
2024-03-19[InstCombine] Fold `fpto{s|u}i non-norm` to zero (#85569)Yingwei Zheng1-0/+19
2024-03-13[InstCombine] Canonicalize `(sitofp x)` -> `(uitofp x)` if `x >= 0`Noah Goldstein1-1/+5
2024-03-13[InstCombine] Simplify `zext nneg i1 X` to zero (#85043)Yingwei Zheng1-0/+4
2024-03-06 [InstCombine] Fix shift calculation in InstCombineCasts (#84027)Quentin Dian1-2/+2
2024-02-22[InstCombine] Pick bfloat over half when shrinking ops that started with an f...Benjamin Kramer1-9/+14
2024-02-07[PatternMatch] Add a matching helper `m_ElementWiseBitCast`. NFC. (#80764)Yingwei Zheng1-3/+9
2024-01-22[InstCombine] Try to fold trunc(shuffle(zext)) to just a shuffle (#78636)Alexey Bataev1-0/+13
2024-01-19Revert "[InstCombine] Try to fold trunc(shuffle(zext)) to just a shuffle (#78...Pranav Kant1-10/+0
2024-01-19[InstCombine] Try to fold trunc(shuffle(zext)) to just a shuffle (#78636)Alexey Bataev1-0/+10
2023-11-29[ValueTracking] Convert isKnownNonNegative() to use SimplifyQuery (NFC)Nikita Popov1-2/+2
2023-11-21[InstCombine] Fix incorrect nneg inference on shift amountNikita Popov1-1/+3