summaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
AgeCommit message (Expand)Author
2025-06-16[InstCombine] Combine trunc (lshr X, BW-1) to i1 --> icmp slt X, 0 (#142593) ...mayanksolanki393
2025-06-16[InstCombine] Propagate FMF from fptrunc when folding `fptrunc fabs(X) -> fab...Yingwei Zheng
2025-06-10[NFC][LLVM] Refactor IRBuilder::Create{VScale,ElementCount,TypeSize}. (#142803)Paul Walker
2025-06-03[ValueTracking] Make Depth last default arg (NFC) (#142384)Ramkumar Ramachandra
2025-05-13[InstCombine] Narrow trunc(lshr) in more cases (#139645)Usman Nadeem
2025-04-28[InstCombine] Support ptrtoint of gep folds for chain of geps (#137323)Nikita Popov
2025-03-27[InstCombine] Handle scalable splats of constants in getMinimumFPType (#132960)Luke Lau
2025-01-06[IRBuilder] Refactor FMF interface (#121657)Yingwei Zheng
2024-12-08[InstCombine] Fold trunc nuw/nsw X to i1 -> true IFF X != 0 (#119131)Andreas Jonson
2024-12-06[InstCombine] Make fptrunc combine use intersection of fast math flags (#118808)John Brawn
2024-12-05[InstCombine] Remove nusw handling in ptrtoint of gep fold (NFCI) (#118804)Nikita Popov
2024-11-25[InstCombine] Remove SPF guard for trunc transforms (#117535)Nikita Popov
2024-10-11[NFC] Rename `Intrinsic::getDeclaration` to `getOrInsertDeclaration` (#111752)Rahul Joshi
2024-09-28[InstCombine] foldVecExtTruncToExtElt - extend to handle trunc(lshr(extractel...Simon Pilgrim
2024-09-17[InstCombine] Avoid simplifying bitcast of undef to a zeroinitializer vector ...Alex MacLean
2024-08-21[InstCombine] Extend Fold of Zero-extended Bit Test (#102100)Marius Kamp
2024-08-01[InstCombine] Recognize copysign idioms (#101324)Yingwei Zheng
2024-07-25Fix unused variable warning. NFC.Simon Pilgrim
2024-07-25Remove the `x86_mmx` IR type. (#98505)James Y Knight
2024-07-12Revert "[InstCombine] Generalize ptrtoint(gep) fold (NFC)"Nikita Popov
2024-07-12[InstCombine] Generalize ptrtoint(gep) fold (NFC)Nikita Popov
2024-07-11[InstCombine] More precise nuw preservation in ptrtoint of gep foldNikita Popov
2024-06-18[InstCombine] Avoid use of ConstantExpr::getShl()Nikita Popov
2024-06-17[InstCombine] Don't preserve context across divNikita Popov
2024-05-20[InstCombine] Fold pointer adding in integer to arithmetic add (#91596)Monad
2024-04-30[InstCombine] Fold `trunc nuw/nsw (x xor y) to i1` to `x != y` (#90408)Monad
2024-04-25[InstCombine] Extract logic for "emit offset and rewrite gep" (NFC)Nikita Popov
2024-04-18[IR][PatternMatch] Only accept poison in getSplatValue() (#89159)Nikita Popov
2024-04-17[InstCombine] Use `auto *` instead of `auto` in `visitSIToFP`; NFCNoah Goldstein
2024-04-16[InstCombine] Add canonicalization of `sitofp` -> `uitofp nneg`Noah Goldstein
2024-04-11[InstCombine] Infer nsw/nuw for trunc (#87910)Yingwei Zheng
2024-03-29[InstCombine] Remove the canonicalization of `trunc` to `i1` (#84628)Monad
2024-03-20Revert "[InstCombine] Canonicalize `(sitofp x)` -> `(uitofp x)` if `x >= 0`"Noah Goldstein
2024-03-19[InstCombine] Fold `fpto{s|u}i non-norm` to zero (#85569)Yingwei Zheng
2024-03-13[InstCombine] Canonicalize `(sitofp x)` -> `(uitofp x)` if `x >= 0`Noah Goldstein
2024-03-13[InstCombine] Simplify `zext nneg i1 X` to zero (#85043)Yingwei Zheng
2024-03-06 [InstCombine] Fix shift calculation in InstCombineCasts (#84027)Quentin Dian
2024-02-22[InstCombine] Pick bfloat over half when shrinking ops that started with an f...Benjamin Kramer
2024-02-07[PatternMatch] Add a matching helper `m_ElementWiseBitCast`. NFC. (#80764)Yingwei Zheng
2024-01-22[InstCombine] Try to fold trunc(shuffle(zext)) to just a shuffle (#78636)Alexey Bataev
2024-01-19Revert "[InstCombine] Try to fold trunc(shuffle(zext)) to just a shuffle (#78...Pranav Kant
2024-01-19[InstCombine] Try to fold trunc(shuffle(zext)) to just a shuffle (#78636)Alexey Bataev
2023-11-29[ValueTracking] Convert isKnownNonNegative() to use SimplifyQuery (NFC)Nikita Popov
2023-11-21[InstCombine] Fix incorrect nneg inference on shift amountNikita Popov
2023-11-13[InstCombine] Infer nneg flag from shift users (#71947)Yingwei Zheng
2023-11-10[InstCombine] Avoid uses of ConstantExpr::getLShr()Nikita Popov
2023-11-08[InstCombine] Infer zext nneg flag (#71534)Nikita Popov
2023-11-07[InstCombine] Favour `CreateZExtOrTrunc` in `narrowFunnelShift` (NFC)Antonio Frighetto
2023-11-07[InstCombine] Zero-extend shift amounts in narrow funnel shift opsAntonio Frighetto
2023-11-01[InstCombine] Fold `(ptrtoint (ptrmask p0, m0))` -> `(and (ptrtoint p0), m0)`Noah Goldstein