summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
* CMake: Add lib/Analysis/CaptureTracking.cppOscar Fuentes2009-01-181-0/+1
| | | | llvm-svn: 62462
* BasicAliasAnalysis and FunctionAttrs were bothDuncan Sands2009-01-184-133/+144
| | | | | | | | | doing very similar pointer capture analysis. Factor out the common logic. The new version is from FunctionAttrs since it does a better job than the version in BasicAliasAnalysis llvm-svn: 62461
* Simplify extract element based on comments from Duncan Sands.Mon P Wang2009-01-181-7/+3
| | | | llvm-svn: 62459
* Forgot this in the previous checkin: fopen now has nocapture, realloc isNick Lewycky2009-01-181-2/+2
| | | | | | supposed to take two arguments. llvm-svn: 62457
* Fix copy and pasted typos that prevented strtok_r, realloc, getenv, ungetc,Nick Lewycky2009-01-181-22/+152
| | | | | | | | | | | | | | | | | | | putc, puts, perror, vscanf and vsscanf from getting annotations. Add annotations for eight printf functions, memalign, pread and pwrite. On Linux, llvm-gcc sometimes renames strdup, getc, putc, strtok_r, scanf and sscanf. Match the alternate function names. Fix a crash annotating opendir. Don't mark fsetpos's second parameter as nocapture. It's supposed to be captured. Do mark fopen's path and mode strings as nocapture. Mark ferror as readonly, but not fileno which may set errno. llvm-svn: 62456
* add a commentGabor Greif2009-01-181-0/+1
| | | | llvm-svn: 62436
* switch over some other methods from indices to iteratorsGabor Greif2009-01-171-8/+8
| | | | llvm-svn: 62430
* make comparisons a bist fasterGabor Greif2009-01-171-5/+3
| | | | llvm-svn: 62428
* Remove tabs.Devang Patel2009-01-171-19/+19
| | | | llvm-svn: 62423
* Refactor codeDevang Patel2009-01-171-118/+73
| | | | llvm-svn: 62421
* Testcase for last commit.Bill Wendling2009-01-171-0/+31
| | | | llvm-svn: 62418
* Extend thiBill Wendling2009-01-171-11/+12
| | | | llvm-svn: 62415
* Fix MatchAddress bug that's preventing negative displacement from being ↵Evan Cheng2009-01-173-15/+32
| | | | | | folded in 64-bit mode. llvm-svn: 62413
* Assign argument type to appropriate DIE.Devang Patel2009-01-171-2/+2
| | | | llvm-svn: 62412
* Remove dead code.Devang Patel2009-01-171-14/+2
| | | | llvm-svn: 62410
* Disable composite type debug info for now.Devang Patel2009-01-171-0/+3
| | | | llvm-svn: 62406
* Temporarily revert my last change. It is causing a bootstrap failure.Bill Wendling2009-01-171-0/+4
| | | | llvm-svn: 62405
* Implement a special algorithm for converting uint_to_fp for i32 values onBill Wendling2009-01-172-49/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | X86. This code: void f() { uint32_t x; float y = (float)x; } used to be: movl %eax, -8(%ebp) movl [2^52 double], -4(%ebp) movsd -8(%ebp), %xmm0 subsd [2^52 double], %xmm0 cvtsd2ss %xmm0, %xmm0 Is now: movsd [2^52 double], %xmm0 movsd %xmm0, %xmm1 movd %ecx, %xmm2 orps %xmm2, %xmm1 subsd %xmm0, %xmm1 cvtsd2ss %xmm1, %xmm0 This is faster on X86. Note that there's an extra load of %xmm0 into %xmm1. That will be fixed in a later coalescer fix. llvm-svn: 62404
* CMake: Add lib/Target/IA64/IA64Subtarget.cppOscar Fuentes2009-01-171-0/+1
| | | | llvm-svn: 62394
* speed up iterative loop by using iterators. changes direction, but ↵Gabor Greif2009-01-171-4/+4
| | | | | | | | functionally equivalent if this works out, I'll change the others next. llvm-svn: 62385
* introduce typedef for complicated vector, and use it tooGabor Greif2009-01-172-2/+3
| | | | llvm-svn: 62384
* Simplify extract element of a scalar to vector.Mon P Wang2009-01-172-5/+26
| | | | llvm-svn: 62383
* typoGabor Greif2009-01-161-1/+1
| | | | llvm-svn: 62377
* Fix PPC ISD::Declare isel and eliminate the need for ↵Evan Cheng2009-01-163-4/+40
| | | | | | PPCTargetLowering::LowerGlobalAddress to check if isVerifiedDebugInfoDesc() is true. Given the recent changes, it would falsely return true for a lot of GlobalAddressSDNode's. llvm-svn: 62373
* Support for multi-valued options in CommandLineMikhail Glushenkov2009-01-163-6/+72
| | | | | | | Makes possible to specify options that take multiple arguments (a-la -sectalign on Darwin). See documentation for details. llvm-svn: 62372
* Give IA64 a TargetSubtarget subclass, so that it canDan Gohman2009-01-163-0/+49
| | | | | | implement getSubtargetImpl. llvm-svn: 62369
* Instead of adding dependence edges between terminator instructionsDan Gohman2009-01-167-26/+70
| | | | | | | | | | | | | | and every other instruction in their blocks to keep the terminator instructions at the end, teach the post-RA scheduler how to operate on ranges of instructions, and exclude terminators from the range of instructions that get scheduled. Also, exclude mid-block labels, such as EH_LABEL instructions, and schedule code before them separately from code after them. This fixes problems with the post-RA scheduler moving code past EH_LABELs. llvm-svn: 62366
* If an anti-dependence uses a non-allocatable register, set AntiDepRegDan Gohman2009-01-161-1/+3
| | | | | | | to 0, to ensure that the subsequent code doesn't try to break the dependence. llvm-svn: 62365
* Use the getNode() accessor instead of accessing the NodeDan Gohman2009-01-161-1/+1
| | | | | | member directly, which is private as of r55504. llvm-svn: 62364
* Disable the post-RA scheduler on this test, since it uses aDan Gohman2009-01-161-1/+2
| | | | | | | simple %prcontext which doesn't find what it's looking for if the scheduler has rearranged the instructions. llvm-svn: 62363
* Fix the check for an empty basic block to check for an empty SUnitsDan Gohman2009-01-161-2/+2
| | | | | | | | array instead, since this is what the scheduler actually cares about. And remove a check that is unnecessary, since it can assume that SUnits isn't empty. llvm-svn: 62362
* Avoid triggering an assertion failure when an instruction patternDan Gohman2009-01-161-1/+2
| | | | | | is a leaf node. Patch by Brandner! llvm-svn: 62361
* new nodes should be added to the worklist, not old nodes.Chris Lattner2009-01-161-1/+2
| | | | llvm-svn: 62359
* Fix comments.Devang Patel2009-01-161-5/+5
| | | | llvm-svn: 62358
* CreateVirtualRegisters does trivial copy coalescing. If a node def is used ↵Evan Cheng2009-01-165-62/+121
| | | | | | by a single CopyToReg, it reuses the virtual register assigned to the CopyToReg. This won't work for SDNode that is a clone or is itself cloned. Disable this optimization for those nodes or it can end up with non-SSA machine instructions. llvm-svn: 62356
* remove a dead method.Chris Lattner2009-01-161-6/+1
| | | | llvm-svn: 62354
* don't assert and die on out of range (undefined) shifts. This fixesChris Lattner2009-01-161-4/+16
| | | | | | PR3334. llvm-svn: 62352
* Fix PR3335 by not turning a store to one address space into a store to another.Chris Lattner2009-01-162-1/+16
| | | | llvm-svn: 62351
* reduce indentation by using early exits, no functionality change.Chris Lattner2009-01-161-44/+47
| | | | llvm-svn: 62350
* Use lightweight DebugInfo objects directly.Devang Patel2009-01-161-51/+50
| | | | llvm-svn: 62341
* Add support for non-zero __builtin_return_address values on X86.Bill Wendling2009-01-162-8/+39
| | | | llvm-svn: 62338
* Change isGVCompilationDisabled() semantics again. It should abort on any GV ↵Evan Cheng2009-01-161-1/+4
| | | | | | that's not constant whether it's "internal" or not. In a server / client environment, GV is returned in the same block of memory as code. However, the memory might not be writable. llvm-svn: 62336
* use specialized accessor instead of plain getOperand(0)Gabor Greif2009-01-161-4/+5
| | | | llvm-svn: 62330
* Align source code.Devang Patel2009-01-161-4/+4
| | | | llvm-svn: 62328
* Fix a "comparison between signed and unsigned integer expressions"Dan Gohman2009-01-161-1/+1
| | | | | | warning. llvm-svn: 62327
* Reinstate r60509 from Dale:Nick Lewycky2009-01-161-0/+1
| | | | | | Make the debugging dump be a full line. llvm-svn: 62325
* Get this building with gcc-4.4.Duncan Sands2009-01-161-0/+1
| | | | llvm-svn: 62322
* Grammar fix.Duncan Sands2009-01-161-1/+1
| | | | llvm-svn: 62319
* Registry.h should not depend on CommandLine.h.Mikhail Glushenkov2009-01-169-32/+66
| | | | | | | Split Support/Registry.h into two files so that we have less to recompile every time CommandLine.h is changed. llvm-svn: 62312
* This is now passing.Evan Cheng2009-01-161-1/+0
| | | | llvm-svn: 62308
OpenPOWER on IntegriCloud