aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/ConstantFold.cpp
AgeCommit message (Expand)AuthorFilesLines
2014-12-18ConstantFold: Shifting undef by zero results in undefDavid Majnemer1-0/+9
2014-12-10ConstantFold: Clean up X * undef codeDavid Majnemer1-6/+8
2014-12-10ConstantFold, InstSimplify: undef >>a x can be either -1 or 0, choose 0David Majnemer1-2/+3
2014-12-10ConstantFold: an undef shift amount results in undefDavid Majnemer1-13/+14
2014-12-10ConstantFold: div undef, 0 should fold to undef, not zeroDavid Majnemer1-9/+19
2014-12-08ConstantFold: Zero-sized globals might land on top of another globalDavid Majnemer1-3/+15
2014-12-06ConstantFold: Don't optimize comparisons with weak linkage objectsDavid Majnemer1-1/+4
2014-12-06I didn't intend to commit this change.David Majnemer1-1/+1
2014-12-06InstSimplify: Optimize away useless unsigned comparisonsDavid Majnemer1-1/+1
2014-10-10Return undef on FP <-> Int conversions that overflow (PR21330).Sanjay Patel1-5/+14
2014-08-21Fix a bug around truncating vector in const prop.Jiangning Liu1-0/+3
2014-08-16IR: Don't add inbounds to GEPs of extern_weak variablesDuncan P. N. Exon Smith1-3/+4
2014-07-04IR: Fold away compares between GV GEPs and GVsDavid Majnemer1-7/+22
2014-06-15Canonicalize addrspacecast ConstExpr between different pointer typesJingyue Wu1-1/+4
2014-04-15[C++11] More 'nullptr' conversion. In some cases just using a boolean check i...Craig Topper1-2/+2
2014-04-09[C++11] More 'nullptr' conversion or in some cases just using a boolean check...Craig Topper1-52/+52
2014-03-04[Modules] Move GetElementPtrTypeIterator into the IR library. As itsChandler Carruth1-1/+1
2013-12-31Fold vector selects with undef elements in the condition. Fixes PR18319.Nick Lewycky1-6/+15
2013-11-15Add addrspacecast instruction.Matt Arsenault1-0/+2
2013-11-10IR: Refactor GEP range checks, reuse them for other parts of foldingDavid Majnemer1-28/+51
2013-11-07IR: Properly canonicalize PointerType in ConstantExpr GEPsDavid Majnemer1-5/+6
2013-11-07IR: Do not canonicalize constant GEPs into an out-of-bounds array accessDavid Majnemer1-1/+37
2013-07-30Respect address space sizes in isEliminableCastPair.Matt Arsenault1-4/+5
2013-06-30ConstantFold: Check that truncating the other side is safe under a sext when ...Benjamin Kramer1-2/+2
2013-02-27IR: Don't constant fold GEP bitcasts between different address spacesMeador Inge1-13/+22
2013-02-19Fix a bug that was found by the clang static analyzer. The var "AT" is null s...Nadav Rotem1-2/+2
2013-01-31Fix ConstantFold's folding of icmp instructions to recognize that,Dan Gohman1-6/+5
2013-01-22Make APFloat constructor require explicit semantics.Tim Northover1-4/+4
2013-01-02Move all of the header files which are involved in modelling the LLVM IRChandler Carruth1-7/+7
2013-01-02Rename VMCore directory to IR.Chandler Carruth1-0/+2066