aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ConstantFolding.cpp
AgeCommit message (Expand)AuthorFilesLines
2012-11-05ConstantFolding.cpp: Whitespace.NAKAMURA Takumi1-100/+100
2012-11-01Revert the majority of the next patch in the address space series:Chandler Carruth1-7/+5
2012-11-01Revert the series of commits starting with r166578 which introduced theChandler Carruth1-124/+117
2012-10-24Add some cleanup to the DataLayout changes requested by Chandler.Micah Villmow1-2/+1
2012-10-24Add in support for getIntPtrType to get the pointer type based on the address...Micah Villmow1-115/+123
2012-10-15Resubmit the changes to llvm core to update the functions to support differen...Micah Villmow1-5/+7
2012-10-11Revert 165732 for further review.Micah Villmow1-7/+5
2012-10-11Add in the first iteration of support for llvm/clang/lldb to allow variable p...Micah Villmow1-5/+7
2012-10-08Move TargetData to DataLayout.Micah Villmow1-17/+17
2012-09-06Dont cast away const needlessly. Found by gcc48 -Wcast-qual.Roman Divacky1-1/+2
2012-07-30When constant folding GEP expressions, keep the address space information of ...Nadav Rotem1-3/+19
2012-07-25When folding a load from a global constant, if the load started in the middleDuncan Sands1-5/+8
2012-04-27Reapply r155682, making constant folding more consistent, with a fix to workDan Gohman1-7/+20
2012-04-27Revert r155682, "Use ConstantExpr::getExtractElement when constant-folding ve...NAKAMURA Takumi1-14/+4
2012-04-27Use ConstantExpr::getExtractElement when constant-folding vectorsDan Gohman1-4/+14
2012-04-24Fix a crash on valid (if UB) bitcode that is produced for some globalChandler Carruth1-3/+11
2012-02-07Convert assert(0) to llvm_unreachableCraig Topper1-2/+2
2012-02-06Remove some dead code and tidy things up now that vectors use ConstantDataVectorChris Lattner1-18/+14
2012-02-05reapply the patches reverted in r149470 that reenable ConstantDataArray,Chris Lattner1-3/+3
2012-02-01Revert Chris' commits up to r149348 that started causing VMCoreTests unit tes...Argyrios Kyrtzidis1-3/+3
2012-01-31Change ConstantArray::get to form a ConstantDataArray when possible,Chris Lattner1-3/+3
2012-01-27Add r149110 back with a fix for when the vector and the int have the sameRafael Espindola1-0/+38
2012-01-27Revert r149110 and add a testcase that was crashing since that revision.Rafael Espindola1-38/+0
2012-01-27enhance constant folding to be able to constant fold bitcast of Chris Lattner1-0/+38
2012-01-26progress making the world safe to ConstantDataVector. WhileChris Lattner1-39/+45
2012-01-25use Constant::getAggregateElement to simplify a bunch of code.Chris Lattner1-73/+24
2012-01-25Use the right method to get the # elements in a CDS.Chris Lattner1-2/+2
2012-01-24Split the interesting bits of ConstantFoldLoadThroughGEPConstantExprChris Lattner1-43/+56
2012-01-20More dead code removal (using -Wunreachable-code)David Blaikie1-2/+0
2011-12-12Switch llvm.cttz and llvm.ctlz to accept a second i1 parameter whichChandler Carruth1-4/+8
2011-12-05Add support for vectors of pointers.Nadav Rotem1-1/+2
2011-12-03Add support for constant folding the pow intrinsic.Chad Rosier1-3/+6
2011-12-01Abuse of mass replace isn't warranted even when the build is failing. ThanksChad Rosier1-25/+29
2011-12-01Fix build by not assuming TLI is guaranteed. Will have to track down cases whereChad Rosier1-24/+23
2011-12-01Prevent library calls from being folded if -fno-builtin has been specified.Chad Rosier1-23/+24
2011-12-01Propagate TargetLibraryInfo throughout ConstantFolding.cpp and Chad Rosier1-26/+35
2011-08-29Fixes following the CR by Chris and Duncan:Nadav Rotem1-6/+0
2011-08-28Bitcasts are transitive. Bitcast-Bitcast-X becomes Bitcast-X.Nadav Rotem1-0/+6
2011-08-24Implement Constant::isAllOnesValue(). Fix ConstantFolding to use the new api.Nadav Rotem1-10/+7
2011-08-23Revert "Address Duncan's CR request:"Eric Christopher1-4/+9
2011-08-23Address Duncan's CR request:Nadav Rotem1-9/+4
2011-08-20Add constant folding support for bitcasts of splat vectors to integers.Nadav Rotem1-2/+10
2011-07-25Convert GetElementPtrInst to use ArrayRef.Jay Foad1-2/+1
2011-07-21Convert ConstantExpr::getGetElementPtr andJay Foad1-4/+3
2011-07-19Convert TargetData::getIndexedOffset to use ArrayRef.Jay Foad1-7/+5
2011-07-19Use ArrayRef in ConstantFoldInstOperands and ConstantFoldCall.Jay Foad1-22/+21
2011-07-18land David Blaikie's patch to de-constify Type, with a few tweaks.Chris Lattner1-31/+31
2011-07-13Convert InsertValueInst and ExtractValueInst APIs to use ArrayRef.Jay Foad1-2/+2
2011-06-23Revert "revert 133714"Rafael Espindola1-2/+1
2011-06-23revert 133714Dylan Noblesmith1-1/+2