summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
* remove empty file.Chris Lattner2010-04-022-1/+0
| | | | llvm-svn: 100222
* remove compatibility typedef.Chris Lattner2010-04-021-2/+0
| | | | llvm-svn: 100221
* rename NewDebugLoc -> DebugLoc, prune #includes in DebugLoc.h.Chris Lattner2010-04-029-47/+39
| | | | | | | This keeps around temporary typedef for clang/llvm-gcc so the build won't break when I commit this :) llvm-svn: 100218
* remove uses of DebugLoc::getUnknownLoc.Chris Lattner2010-04-022-27/+20
| | | | llvm-svn: 100217
* include densemap.h explicitly and rearrange #includes.Chris Lattner2010-04-021-3/+3
| | | | llvm-svn: 100216
* stop using DebugLoc::getUnknownLoc()Chris Lattner2010-04-026-21/+13
| | | | llvm-svn: 100215
* use DebugLoc default ctor instead of DebugLoc::getUnknownLoc()Chris Lattner2010-04-0236-159/+133
| | | | llvm-svn: 100214
* Switch the code generator (except the JIT) onto the new DebugLocChris Lattner2010-04-0216-203/+128
| | | | | | | | | | | | | | | representation. This eliminates the 'DILocation' MDNodes for file/line/col tuples from -O0 -g codegen. This remove the old DebugLoc class, making it a typedef for DebugLoc, I'll rename NewDebugLoc next. I didn't update the JIT to use the new apis, so it will continue to work, but be as slow as before. Someone should eventually do this or, better yet, rip out the JIT debug info stuff and build the JIT on top of MC. llvm-svn: 100209
* Correctly lower memset / memcpy of undef. It should be a nop. PR6767.Evan Cheng2010-04-028-55/+94
| | | | llvm-svn: 100208
* Revert 100204. It broke a bunch of tests and apparently changed what passes ↵Evan Cheng2010-04-0214-283/+42
| | | | | | are run during codegen. llvm-svn: 100207
* Update CMake.Benjamin Kramer2010-04-021-0/+1
| | | | llvm-svn: 100206
* Let's try this again. Re-apply 100143 including an apparent missingDavid Greene2010-04-0214-42/+283
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | <string> include. For some reason the buildbot choked on this while my builds did not. It's probably due to a difference in system headers. --- Add some switches helpful for debugging: -print-before=<Pass Name> Dump IR before running pass <Pass Name>. -print-before-all Dump IR before running each pass. -print-after-all Dump IR after running each pass. These are helpful when tracking down a miscompilation. It is easy to get IR dumps and do diffs on them, etc. To make this work well, add a new getPrinterPass API to Pass so that each kind of pass (ModulePass, FunctionPass, etc.) can create a Pass suitable for dumping out the kind of object the Pass works on. llvm-svn: 100204
* Revert r100191 since it breaks objc in clang Mon P Wang2010-04-0228-314/+143
| | | | llvm-svn: 100199
* Reapply address space patch after fixing an issue in MemCopyOptimizer.Mon P Wang2010-04-0228-143/+314
| | | | | | | Added support for address spaces and added a isVolatile field to memcpy, memmove, and memset, e.g., llvm.memcpy.i32(i8*, i8*, i32, i32) -> llvm.memcpy.p0i8.p0i8.i32(i8*, i8*, i32, i32, i1) llvm-svn: 100191
* Add an explicit keyword.Dan Gohman2010-04-021-1/+1
| | | | llvm-svn: 100187
* Manually notify ScalarEvolution before making an operand replacement, sinceDan Gohman2010-04-022-0/+48
| | | | | | it can't currently observe such changes automatically. llvm-svn: 100186
* Fix SpecificBumpPtrAllocator iteration.Torok Edwin2010-04-021-1/+1
| | | | | | | | Need to start from (char*)(Slab+1), and not from (char*)Slab+1. This fixes crashes in Win64 debug mode. Thanks to Nicolas Capens! llvm-svn: 100184
* Add notes about dragonegg.Duncan Sands2010-04-021-5/+25
| | | | llvm-svn: 100183
* Recommit 100158 now that the buildbots are happy again.Bob Wilson2010-04-021-21/+29
| | | | llvm-svn: 100177
* Remove FIXME - if there's a better way to do this it isn't here.Eric Christopher2010-04-021-3/+0
| | | | llvm-svn: 100176
* Revert the recent alignment changes. They're broken for -Os because,Dan Gohman2010-04-025-16/+4
| | | | | | | in particular, they end up aligning strings at 16-byte boundaries, and there's no way for GlobalOpt to check OptForSize. llvm-svn: 100172
* After trivial coalescing, the MI being visited may have become a copy. Avoid ↵Evan Cheng2010-04-022-1/+75
| | | | | | | | adding it to CSE hash table since copies aren't being considered for CSE and they may be deleted. rdar://7819990 llvm-svn: 100170
* Teach AnalyzeBranch, RemoveBranch and the branchDale Johannesen2010-04-0211-9/+111
| | | | | | | folder to be tolerant of debug info following the branch(es) at the end of a block. llvm-svn: 100168
* Disambiguate conditional expression for newer GCCs.Chandler Carruth2010-04-021-2/+2
| | | | llvm-svn: 100167
* Remove this initializer so that the optimizer doesn't convertDan Gohman2010-04-021-1/+1
| | | | | | unaligned loads into aligned loads. llvm-svn: 100166
* Update this test for the new preferred alignment heuristics.Dan Gohman2010-04-021-1/+1
| | | | llvm-svn: 100165
* Revert 100158 in case it is causing some of the buildbot problems.Bob Wilson2010-04-021-29/+21
| | | | llvm-svn: 100164
* Updated the install location for EnhancedDisassemblySean Callanan2010-04-021-10/+7
| | | | | | | | on Mac OS X to use @rpath rather than an absolute path. Also allowed the version to be set using an environment variable. llvm-svn: 100163
* Change variables which are exactly 16 bytes to be 16-byte-aligned too.Dan Gohman2010-04-021-1/+1
| | | | | | This fixes test/Transforms/GlobalOpt/gv-align.ll. llvm-svn: 100161
* Make globalopt refine global variable alignment.Dan Gohman2010-04-022-1/+13
| | | | llvm-svn: 100160
* Check for terminating conditions before adding PHIs to the worklists.Bob Wilson2010-04-021-21/+29
| | | | | | This is more efficient than adding them to the worklist and then ignoring them. llvm-svn: 100158
* If the bitcode reader input stream isn't a multiple of 4 bytes, it's moreDan Gohman2010-04-021-3/+7
| | | | | | | likely not a bitcode file at all, rather than being a bitcode file which is truncated. Check for this case and issue a more relevant error message. llvm-svn: 100156
* Remove trailing whitespace.Bob Wilson2010-04-011-5/+5
| | | | llvm-svn: 100148
* Rewrite another SSAUpdater function to avoid recursion.Bob Wilson2010-04-012-34/+48
| | | | llvm-svn: 100147
* Revert r100143.Eric Christopher2010-04-0115-285/+42
| | | | llvm-svn: 100146
* Revert r100117.Devang Patel2010-04-011-18/+6
| | | | llvm-svn: 100145
* Add some switches helpful for debugging:David Greene2010-04-0114-42/+282
| | | | | | | | | | | | | | | | | | | | | | | -print-before=<Pass Name> Dump IR before running pass <Pass Name>. -print-before-all Dump IR before running each pass. -print-after-all Dump IR after running each pass. These are helpful when tracking down a miscompilation. It is easy to get IR dumps and do diffs on them, etc. To make this work well, add a new getPrinterPass API to Pass so that each kind of pass (ModulePass, FunctionPass, etc.) can create a Pass suitable for dumping out the kind of object the Pass works on. llvm-svn: 100143
* In 64-bit mode, use i64 to lower memcpy / memset instead of f64.Evan Cheng2010-04-013-9/+26
| | | | llvm-svn: 100137
* Do not eagerly record known previous location. DBG_VALUE may not cause a new ↵Devang Patel2010-04-011-1/+2
| | | | | | label due to one or other reason. llvm-svn: 100134
* Skip checking preferred alignment of GVs defined in other translation units ↵Evan Cheng2010-04-011-1/+1
| | | | | | all together. llvm-svn: 100133
* Add comments about DstAlign and SrcAlign.Evan Cheng2010-04-015-8/+31
| | | | llvm-svn: 100132
* Change another SSAUpdater function to avoid recursion.Bob Wilson2010-04-012-19/+25
| | | | llvm-svn: 100131
* Simplify the code to check for existing PHIs, now that it is only used inBob Wilson2010-04-011-30/+12
| | | | | | one place. This removes the template function added in svn 94690. llvm-svn: 100130
* The SSAUpdater should avoid recursive traversals of the CFG, since that mayBob Wilson2010-04-012-16/+24
| | | | | | blow out the stack for really big functions. Start by fixing an easy case. llvm-svn: 100126
* - Avoid using floating point stores to implement memset unless the value is ↵Evan Cheng2010-04-017-17/+32
| | | | | | | | zero. - Do not try to infer GV alignment unless its type is sized. It's not possible to infer alignment if it has opaque type. llvm-svn: 100118
* Skip instructions until new scope is seen.Devang Patel2010-04-011-6/+18
| | | | llvm-svn: 100117
* Cosmetic changes.Devang Patel2010-04-011-5/+5
| | | | | | Update comment, rename a local variable. llvm-svn: 100116
* Remove accidental include and add a comment.Benjamin Kramer2010-04-011-2/+2
| | | | llvm-svn: 100107
* Various improvements to MemoryBuffer::getFile:Benjamin Kramer2010-04-011-17/+26
| | | | | | | | | | - Use a RAII object to close the FD. - Use sys::StrError instead of thread-unsafe strerror calls. - Recover gracefully if read returns zero. This works around an issue on DragonFlyBSD where /dev/null has an st_size of 136 but we can't read 136 bytes from it. llvm-svn: 100106
* Add -mcpu to memcpy / memset tests to ensure they behave the same on all ↵Evan Cheng2010-04-013-9/+8
| | | | | | hosts / targets. llvm-svn: 100101
OpenPOWER on IntegriCloud