aboutsummaryrefslogtreecommitdiff
path: root/lib/VMCore/ConstantFold.cpp
AgeCommit message (Expand)Author
2009-10-28Previously, all operands to Constant were themselves constant.Chris Lattner
2009-10-17Teach vm core to more aggressively fold 'trunc' constantexprs,Chris Lattner
2009-10-05strength reduce a ton of type equality tests to check the typeid (ThroughChris Lattner
2009-09-20Peer through zext and sext to eliminate them when it is safe to do so.Nick Lewycky
2009-09-20Fold 'icmp eq (icmp), true' into an xor(icmp).Nick Lewycky
2009-09-20Correct the comment; this applies to fcmp too.Nick Lewycky
2009-09-20Remove tab, again.Nick Lewycky
2009-09-20Teach the constant folder how to not a cmpinst.Nick Lewycky
2009-09-20Try turning icmp(bitcast(x), bitcast(y)) into icmp(bitcast(bitcast(x)), y) inNick Lewycky
2009-09-20Remove tabs I added.Nick Lewycky
2009-09-20Clean up the usage of evaluateICmpRelation's return value.Nick Lewycky
2009-09-20Remove dead store by taking a guess at what Chris meant. I wasn't able toNick Lewycky
2009-09-20Delete dead code. sext and zext can not turn integers into pointers. Further,Nick Lewycky
2009-09-20Value* were never meant to be const. Removing constness from the constantNick Lewycky
2009-09-20Teach the constant folder how to handle a few simple i1 cases.Nick Lewycky
2009-09-15Fix an accidental inversion of the inbounds flag.Dan Gohman
2009-09-15fix PR4963: folding insertvalue would sometimes turn a packed struct intoChris Lattner
2009-09-11Teach lib/VMCore/ConstantFold.cpp how to set the inbounds keyword andDan Gohman
2009-09-10Factor out the code for checking that all indices in a getelementptr areDan Gohman
2009-09-03Revert 80959. It isn't sufficient to solve the full problem. And itDan Gohman
2009-09-03Remove the API for creating ConstantExprs with the nsw, nuw, inbounds,Dan Gohman
2009-08-29Cleanup whitespace and indentation.Dan Gohman
2009-08-13Push LLVMContexts through the IntegerType APIs.Owen Anderson
2009-08-12Simplify this code, and use an in-bounds GEP.Dan Gohman
2009-08-05Privatize the StructType table, which unfortunately involves routing contexts...Owen Anderson
2009-07-31Move a few more APIs back to 2.5 forms. The only remaining ones left to chan...Owen Anderson
2009-07-31Move getTrue() and getFalse() to 2.5-like APIs.Owen Anderson
2009-07-30Move more code back to 2.5 APIs.Owen Anderson
2009-07-29Move types back to the 2.5 API.Owen Anderson
2009-07-29Move ConstantExpr to 2.5 API.Owen Anderson
2009-07-28Return ConstantVector to 2.5 API.Owen Anderson
2009-07-28Change ConstantArray to 2.5 API.Owen Anderson
2009-07-27Move ConstantStruct back to 2.5 API.Owen Anderson
2009-07-27Move ConstantFP construction back to the 2.5-ish API.Owen Anderson
2009-07-24Revert the ConstantInt constructors back to their 2.5 forms where possible, t...Owen Anderson
2009-07-21Rename getConstantInt{True|False} to get{True|False} at Chris' behest.Owen Anderson
2009-07-14llvm_unreachable->llvm_unreachable(0), LLVM_UNREACHABLE->llvm_unreachable.Torok Edwin
2009-07-13Inline EvalVectorOp in order to get rid of passing-pointer-to-static-methods ...Owen Anderson
2009-07-13Begin the painful process of tearing apart the rat'ss nest that is Constants....Owen Anderson
2009-07-11assert(0) -> LLVM_UNREACHABLE.Torok Edwin
2009-07-08Remove the vicmp and vfcmp instructions. Because we never had a release withNick Lewycky
2009-06-21Expand this test to handle more cases (remainder and shifts) of zero.Nick Lewycky
2009-06-21implement PR4424: 0/x is always 0 for integer division.Chris Lattner
2009-06-20Revert r73790, and replace it with a significantly less ugly solution. Rathe...Owen Anderson
2009-06-19Fix a serious bug that would cause deadlock during abstract type refinement. ...Owen Anderson
2009-06-15Support vector casts in more places, fixing a variety of assertionDan Gohman
2009-06-04Split the Add, Sub, and Mul instruction opcodes into separateDan Gohman
2009-03-14Apply a patch by Micah Villmow to fix AsmParser to accept vectorDan Gohman
2009-02-24Extension of GEP in constant folder was broken (apparently this codeDaniel Dunbar
2009-02-04Allow the inverse transform x86_fp80 -> i80 (alsoDuncan Sands