summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Constify.Anders Carlsson2010-04-021-5/+5
| | | | llvm-svn: 100174
* Minor cleanup.Anders Carlsson2010-04-021-68/+79
| | | | llvm-svn: 100173
* 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
* Resolve a layering violation by making AddTaggedVal public forChandler Carruth2010-04-023-24/+21
| | | | | | | | PartialDiagnostic objects, and hoisting the stream operator for QualType into Type.h with the operator for the normal DiagnosticBuilder. Also remove the no longer needed friend declaration for the DeclarationName stream operator. llvm-svn: 100169
* 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 in a motivating test for the revised access semantics.John McCall2010-04-021-0/+16
| | | | llvm-svn: 100159
* 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
* remove these merge-tracking properties as theyGabor Greif2010-04-020-0/+0
| | | | | | might interfere with merges to other branches (as Dan pointed out) llvm-svn: 100157
* 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
* Correct the calculation of access to more closely model the wording inJohn McCall2010-04-022-123/+265
| | | | | | the standard. llvm-svn: 100155
* Update analyzer build.Ted Kremenek2010-04-011-1/+1
| | | | llvm-svn: 100153
* 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
* Minor cleanup with the ternary operatorDouglas Gregor2010-04-011-2/+2
| | | | llvm-svn: 100144
* 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
* Relax the typesafty rules of block pointers types whichFariborz Jahanian2010-04-012-6/+7
| | | | | | take'id' or return 'id' in their type. Fixes radar 7814131. llvm-svn: 100129
* 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
* Overhaul checking of non-type template arguments that should refer toDouglas Gregor2010-04-019-188/+347
| | | | | | | | | | | an object or function. Our previous checking was too lax, and ended up allowing missing or extraneous address-of operators, among other evils. The new checking provides better diagnostics and adheres more closely to the standard. Fixes PR6563 and PR6749. llvm-svn: 100125
* Driver: Add support for a CLANGXX_IS_PRODUCTION build variable, which enableDaniel Dunbar2010-04-016-7/+24
| | | | | | Clang++ support, even in "Production" mode (for testing purposes). llvm-svn: 100119
* - 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
* Fix -Asserts warning, and protect against missing case.Daniel Dunbar2010-04-011-2/+3
| | | | llvm-svn: 100115
* 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
* Include *.inc in install targetKovarththanan Rajaratnam2010-04-011-0/+6
| | | | | | Fixes PR6755. llvm-svn: 100105
* 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
* Introduce ImmutableCallSite, useful for contexts where no mutationGabor Greif2010-04-016-182/+227
| | | | | | | | | is necessary. Inherits from new templated baseclass CallSiteBase<> which is highly customizable. Base CallSite on it too, in a configuration that allows full mutation. Adapt some call sites in analyses to employ ImmutableCallSite. llvm-svn: 100100
* Use the element type to compute the array size when the base region is a ↵Zhongxing Xu2010-04-013-4/+31
| | | | | | | | VarRegion. Patch by Jordy Rose. llvm-svn: 100099
* Initial support for visiting CXXMemberCallExpr.Zhongxing Xu2010-04-012-6/+93
| | | | llvm-svn: 100098
* Clean up this file a little, no functionality change. This is a subset of myNick Lewycky2010-04-011-11/+10
| | | | | | patch back in r94322. llvm-svn: 100097
* switch IRBuilder to use NewDebugLoc for locations insteadChris Lattner2010-04-012-10/+13
| | | | | | | | | | of raw mdnodes. This allows frontends to specify debug locations without ever creating an MDNode for the DILocation. This requires a corresponding clang/llvm-gcc change which I'll try to commit as simultaneously as possible. llvm-svn: 100095
* adjust to IRBuilder change and use faster DebugLoc apis.Chris Lattner2010-04-012-21/+11
| | | | llvm-svn: 100093
* add comments, don't require inlined-at to be specified.Chris Lattner2010-04-011-1/+3
| | | | llvm-svn: 100092
OpenPOWER on IntegriCloud