summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remove another leak. Due to some reason AliasSetTracker didn't had any dtor...Anton Korobeynikov2007-11-252-0/+6
| | | | llvm-svn: 44320
* Add new SCEV, SCEVSMax. This allows LLVM to analyze do-while loops.Nick Lewycky2007-11-258-84/+203
| | | | llvm-svn: 44319
* Implement PR1822Chris Lattner2007-11-252-3/+18
| | | | llvm-svn: 44318
* Remove a leak. Destroy LoopInfoBase object. releaseMemory() is actually ↵Anton Korobeynikov2007-11-251-1/+1
| | | | | | called in its dtor. llvm-svn: 44317
* sizeof() return size in bytes, not bits, patch by Nuno Lopes!Chris Lattner2007-11-251-1/+1
| | | | llvm-svn: 44316
* Fix PR1816. If a bitcast of a function only exists because of aDuncan Sands2007-11-255-35/+101
| | | | | | | | | trivial difference in function attributes, allow calls to it to be converted to direct calls. Based on a patch by Török Edwin. While there, move the various lists of mutually incompatible parameters etc out of the verifier and into ParameterAttributes.h. llvm-svn: 44315
* Don't ignore files that are no longer in use.Reid Spencer2007-11-250-0/+0
| | | | llvm-svn: 44313
* Moved logic for -Wfloat-equal to SemaChecking.cpp.Ted Kremenek2007-11-255-66/+103
| | | | | | | | | Moved utility functions IgnoreParen and friends to be static inline functions defined in SemaUtil.h. Added SemaUtil.h to Xcode project. llvm-svn: 44312
* Check that the clobber registers are valid.Anders Carlsson2007-11-255-5/+82
| | | | llvm-svn: 44311
* Fix a long standing deficiency in the X86 backend: we wouldChris Lattner2007-11-255-97/+128
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sometimes emit "zero" and "all one" vectors multiple times, for example: _test2: pcmpeqd %mm0, %mm0 movq %mm0, _M1 pcmpeqd %mm0, %mm0 movq %mm0, _M2 ret instead of: _test2: pcmpeqd %mm0, %mm0 movq %mm0, _M1 movq %mm0, _M2 ret This patch fixes this by always arranging for zero/one vectors to be defined as v4i32 or v2i32 (SSE/MMX) instead of letting them be any random type. This ensures they get trivially CSE'd on the dag. This fix is also important for LegalizeDAGTypes, as it gets unhappy when the x86 backend wants BUILD_VECTOR(i64 0) to be legal even when 'i64' isn't legal. This patch makes the following changes: 1) X86TargetLowering::LowerBUILD_VECTOR now lowers 0/1 vectors into their canonical types. 2) The now-dead patterns are removed from the SSE/MMX .td files. 3) All the patterns in the .td file that referred to immAllOnesV or immAllZerosV in the wrong form now use *_bc to match them with a bitcast wrapped around them. 4) X86DAGToDAGISel::SelectScalarSSELoad is generalized to handle bitcast'd zero vectors, which simplifies the code actually. 5) getShuffleVectorZeroOrUndef is updated to generate a shuffle that is legal, instead of generating one that is illegal and expecting a later legalize pass to clean it up. 6) isZeroShuffle is generalized to handle bitcast of zeros. 7) several other minor tweaks. This patch is definite goodness, but has the potential to cause random code quality regressions. Please be on the lookout for these and let me know if they happen. llvm-svn: 44310
* Forgot some X86 registersAnders Carlsson2007-11-251-0/+1
| | | | llvm-svn: 44309
* Add tables for GCC register names and aliases. This will be used for inline asmAnders Carlsson2007-11-243-4/+171
| | | | llvm-svn: 44308
* Added more test cases for uninitialized values checker.Ted Kremenek2007-11-241-0/+15
| | | | llvm-svn: 44307
* Fixed bogus culling of uninitialized-values "taint" propagation during ↵Ted Kremenek2007-11-242-10/+35
| | | | | | | | | | | | assignments. We accidentally were throttling the propagation of uninitialized state across assignments (e.g. x = y). Thanks to Anders Carlsson for spotting this problem. Added test cases to test suite to provide regression testing for the uninitialized values analysis. llvm-svn: 44306
* Moved dead-stores test cast to a new test suite subdirectory: Analysis.Ted Kremenek2007-11-242-1/+1
| | | | llvm-svn: 44305
* Implement expand support for MERGE_VALUEs that only produces one result.Chris Lattner2007-11-241-0/+4
| | | | llvm-svn: 44304
* add a immAllZerosV_bc pattern fragment for consistency with others.Chris Lattner2007-11-241-3/+6
| | | | llvm-svn: 44303
* remove bogus assertion that broke CodeGen/Generic/cast-fp.ll on x86Chris Lattner2007-11-241-3/+0
| | | | | | among others. llvm-svn: 44302
* Implement support for custom legalization in DAGTypeLegalizer::ExpandOperand.Chris Lattner2007-11-241-30/+43
| | | | | | | | Improve a comment. Unbreak Duncan's carefully written path compression where I didn't realize what was happening! llvm-svn: 44301
* Several changes:Chris Lattner2007-11-248-149/+277
| | | | | | | | | | | | | | | | | | | | | 1) Change the interface to TargetLowering::ExpandOperationResult to take and return entire NODES that need a result expanded, not just the value. This allows us to handle things like READCYCLECOUNTER, which returns two values. 2) Implement (extremely limited) support in LegalizeDAG::ExpandOp for MERGE_VALUES. 3) Reimplement custom lowering in LegalizeDAGTypes in terms of the new ExpandOperationResult. This makes the result simpler and fully general. 4) Implement (fully general) expand support for MERGE_VALUES in LegalizeDAGTypes. 5) Implement ExpandOperationResult support for ARM f64->i64 bitconvert and ARM i64 shifts, allowing them to work with LegalizeDAGTypes. 6) Implement ExpandOperationResult support for X86 READCYCLECOUNTER and FP_TO_SINT, allowing them to work with LegalizeDAGTypes. LegalizeDAGTypes now passes several more X86 codegen tests when enabled and when type legalization in LegalizeDAG is ifdef'd out. llvm-svn: 44300
* add a noteChris Lattner2007-11-241-0/+21
| | | | llvm-svn: 44299
* upgrade this testChris Lattner2007-11-241-8/+6
| | | | llvm-svn: 44298
* Keep track of whether the asm is volatile or not.Anders Carlsson2007-11-238-6/+23
| | | | llvm-svn: 44297
* Fix PR1816, by correcting the broken definition of APInt::countTrailingZeros.Chris Lattner2007-11-233-5/+12
| | | | llvm-svn: 44296
* simplify some code.Chris Lattner2007-11-231-5/+1
| | | | llvm-svn: 44295
* Fix APInt::countTrailingZeros to return BitWidth if the input is zero ↵Chris Lattner2007-11-231-2/+2
| | | | | | instead of returning some random large number. llvm-svn: 44294
* add a comment.Chris Lattner2007-11-231-1/+1
| | | | llvm-svn: 44293
* splice some lines together, no functionality change.Chris Lattner2007-11-231-11/+7
| | | | llvm-svn: 44292
* !< is >=, not >. Thanks to Max Hailperin for pointing this out!Chris Lattner2007-11-231-2/+2
| | | | llvm-svn: 44291
* improve codegen for global variable initializers, implementing Chris Lattner2007-11-232-27/+252
| | | | | | | | test/CodeGen/global-with-initialiser.c Patch by Oliver Hunt! llvm-svn: 44290
* Check asm input and output expressions.Anders Carlsson2007-11-233-1/+51
| | | | llvm-svn: 44289
* Ding dong, the DoesntAccessMemoryFns andDuncan Sands2007-11-238-193/+83
| | | | | | | | | OnlyReadsMemoryFns tables are dead! We get more, and more accurate, information from gcc via the readnone and readonly function attributes. llvm-svn: 44288
* Remove some logic I thoughtlessly copied overDuncan Sands2007-11-231-3/+0
| | | | | | | | from the old ADCE implementation (there it was correct because the transform was being done for read-only functions). llvm-svn: 44287
* Fix a bug where we'd try to find a scev value for a bitcast operand,Chris Lattner2007-11-232-0/+28
| | | | | | | even though the bitcast operand did not have integer type. This fixes PR1814. llvm-svn: 44286
* Fix PR1820, an incredibly subtle macro expansion bug that Neil discovered.Chris Lattner2007-11-232-0/+16
| | | | | | Neil, please review this fix. llvm-svn: 44285
* Fix PR1817.Chris Lattner2007-11-222-1/+22
| | | | llvm-svn: 44284
* add some static icmpinst predicates.Chris Lattner2007-11-221-7/+17
| | | | llvm-svn: 44283
* add missing #includeChris Lattner2007-11-221-0/+1
| | | | llvm-svn: 44282
* Don't crash on bogus llvm.noinline. This is first part of PR1817 (preventing ↵Anton Korobeynikov2007-11-221-0/+4
| | | | | | reduction) llvm-svn: 44281
* Turn invokes of nounwind functions into ordinary calls.Duncan Sands2007-11-222-1/+63
| | | | llvm-svn: 44280
* Teach alias analysis about readnone/readonly functions.Duncan Sands2007-11-222-0/+39
| | | | | | Based on a patch by Török Edwin. llvm-svn: 44279
* Readonly/readnone functions are allowed to throwDuncan Sands2007-11-222-37/+13
| | | | | | | exceptions, so don't turn invokes of them into calls. llvm-svn: 44278
* resolve the last fixme's in the new tblgen parser.Chris Lattner2007-11-221-6/+4
| | | | llvm-svn: 44277
* change the Init print methods to return strings, and implement Chris Lattner2007-11-222-51/+58
| | | | | | print in terms of that. llvm-svn: 44276
* eliminate a bunch of print methods that are duplicate with the getAsString() ↵Chris Lattner2007-11-222-17/+1
| | | | | | method. llvm-svn: 44275
* Rewrite the tblgen parser in a recursive descent style, eliminating the ↵Chris Lattner2007-11-2210-3928/+1661
| | | | | | | | | | | | bison parser. This makes the parser much easier to understand, eliminates a ton of global variables, and gives tblgen nice caret diagnostics. It is also faster, but tblgen probably doesn't care about performance. There are a couple of FIXMEs which I will take care of next. llvm-svn: 44274
* Rename the 'const' parameter attribute to 'readnone',Duncan Sands2007-11-226-19/+19
| | | | | | | and the 'pure' parameter attribute to 'readonly'. Names suggested by DannyB. llvm-svn: 44273
* Instead of calculating constant factors, calculate the number of trailingNick Lewycky2007-11-221-54/+47
| | | | | | bits. Patch from Wojciech Matyjewicz. llvm-svn: 44268
* Create nodes for inline asm so that we don't crash looking for the node later.Nick Lewycky2007-11-222-0/+16
| | | | llvm-svn: 44267
* Store output and input operands as well as clobber information in the ↵Anders Carlsson2007-11-229-22/+241
| | | | | | AsmStmt. Ted, could you please review the serialization/deserialization code? llvm-svn: 44266
OpenPOWER on IntegriCloud