summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* revert the usage of the objectsize intrinsic with 3 parameters (to match ↵Nuno Lopes2012-05-224-12/+8
| | | | | | LLVM r157255) llvm-svn: 157256
* revert my previous patches that introduced an additional parameter to the ↵Nuno Lopes2012-05-2215-276/+105
| | | | | | | | objectsize intrinsic. After a lot of discussion, we realized it's not the best option for run-time bounds checking llvm-svn: 157255
* Only erase virtregs with no uses left.Jakob Stoklund Olesen2012-05-222-4/+133
| | | | | | | | | Also make sure registers aren't erased twice if the dead def mentions the register twice. This fixes PR12911. llvm-svn: 157254
* Remove some compilation warnings.Filipe Cabecinhas2012-05-222-2/+2
| | | | llvm-svn: 157253
* tsan: reduce per-thread memory usageDmitry Vyukov2012-05-229-21/+19
| | | | llvm-svn: 157252
* Fix PR12858, a crash due to GVN's PRE not fully removing an instruction from theDuncan Sands2012-05-222-6/+45
| | | | | | | | | | | | leader table. That's because it wasn't expecting instructions to turn up as leader for a value number that is not its own, but equality propagation could create this situation. One solution is to have the leader table use a WeakVH but this slows down GVN by about 5%. Instead just have equality propagation not add instructions to the leader table, only constants and arguments. In theory this might cause GVN to run more (each time it changes something it runs again) but it doesn't seem to occur enough to cause a slow down. llvm-svn: 157251
* [asan] nuke some old unused codeKostya Serebryany2012-05-221-51/+0
| | | | llvm-svn: 157250
* [asan] increase the stack size limit to 256M (yes, that happens); also CHECK ↵Kostya Serebryany2012-05-222-8/+6
| | | | | | that the stack size is less than that on a non-main thread llvm-svn: 157249
* tsan: simple memory profilerDmitry Vyukov2012-05-229-4/+110
| | | | llvm-svn: 157248
* Replace inline asm constraint "=a" by the more general constraint "=r".Simon Atanasyan2012-05-222-2/+2
| | | | | | That extend a range of platforms support this test case. llvm-svn: 157247
* ScheduleOptimizer: Simplify some codeTobias Grosser2012-05-221-22/+10
| | | | | | We now use isl_map_equate, which makes the code a lot simpler. llvm-svn: 157246
* ScopInfo: Add parameter bounds to contextTobias Grosser2012-05-224-2/+39
| | | | | | | | Derive the maximal and minimal values of a parameter from the type it has. Add this information to the scop context. This information is needed, to derive optimal types during code generation. llvm-svn: 157245
* Replace some asserts with llvm_unreachableTobias Grosser2012-05-221-4/+4
| | | | llvm-svn: 157244
* ScopInfo: SCEVUnknowns are always parametersTobias Grosser2012-05-221-15/+1
| | | | | | | | There is no need for special code to handle SCEVUnknowns. SCEVUnkowns are always parameters and will be handled by the generic parameter handling code in visit(). llvm-svn: 157243
* Move isParallelFor into CodeGenerationTobias Grosser2012-05-223-22/+24
| | | | | | This removes another include of CLooG header files. llvm-svn: 157242
* Return a constant of the appropriate type.Filipe Cabecinhas2012-05-221-2/+2
| | | | llvm-svn: 157241
* Remove trailing semicolons.Filipe Cabecinhas2012-05-226-10/+10
| | | | llvm-svn: 157240
* [asan] use -fno-builtin to build asan-rt on MacKostya Serebryany2012-05-221-1/+1
| | | | llvm-svn: 157239
* [asan] use -fPIE -fno-builtin for building asan-rtKostya Serebryany2012-05-221-2/+2
| | | | llvm-svn: 157238
* [asan] fix one test on 32-bit Mac 10.7; enable another test on MacKostya Serebryany2012-05-222-5/+3
| | | | llvm-svn: 157237
* Fix constant used for pshufb mask when lowering v16i8 shuffles. Bug ↵Craig Topper2012-05-221-1/+1
| | | | | | introduced in r157043. Fixes PR12908. llvm-svn: 157236
* This patch adds a predicate to existing mips32 and mips64 so that thoseAkira Hatanaka2012-05-226-101/+134
| | | | | | | | | | | | | | | | | | | instruction encodings can be excluded during mips16 processing. This revision fixes the issue raised by Jim Grosbach. bool hasStandardEncoding() const { return !inMips16Mode(); } When micromips is added it will be bool StandardEncoding() const { return !inMips16Mode()&& !inMicroMipsMode(); } No additional testing is needed other than to assure that there is no regression from this patch. Patch by Reed Kotler. llvm-svn: 157234
* Truthify a comment.Richard Smith2012-05-221-2/+2
| | | | llvm-svn: 157232
* fix the quotient returned by sdivrem() for the case when LHS is negative and ↵Nuno Lopes2012-05-222-2/+31
| | | | | | | | RHS is positive based on a patch by Preston Briggs, with some modifications llvm-svn: 157231
* rdar://problem/11487457Johnny Chen2012-05-223-0/+80
| | | | | | | | Add convenience registers eax, ebx, ecx, edx, edi, esi, ebp, esp to the 'register read' command for x86_64. Add a GDBRemoteRegisterContext::Addx86_64ConvenienceRegisters() method called from ProcessGDBRemote::BuildDynamicRegisterInfo(). Servicing of eax, for example, is accomplished by delegating to rax with an adjusted offset into the register context. llvm-svn: 157230
* Fix typo.Ted Kremenek2012-05-221-1/+1
| | | | llvm-svn: 157229
* Use Perl prototypes instead of shift.Ted Kremenek2012-05-221-3/+3
| | | | llvm-svn: 157228
* [objcmt] Don't add redundant parentheses when migrating subscripting of an ivar.Argyrios Kyrtzidis2012-05-223-2/+10
| | | | | | rdar://11501256 llvm-svn: 157227
* Fix a bug where if I just run:Johnny Chen2012-05-221-3/+0
| | | | | | | | ./dotest.py No progress bar appears. llvm-svn: 157226
* Also push file & line breakpoints past the prologue. Also added a "-K" ↵Jim Ingham2012-05-229-41/+128
| | | | | | | | | | | argument to the relevant "break set" commands to set this per breakpoint. Also, some CreateBreakpoint API's in the lldb_private namespace had "internal" first and "skip_prologue" second. "internal should always be last. Fixed that. rdar://problem/11484729 llvm-svn: 157225
* FileCheck'ize test, and add a bit to test for r157221.Jim Grosbach2012-05-211-1/+7
| | | | llvm-svn: 157222
* ARM: .end_data_region mismatch in Thumb2.Jim Grosbach2012-05-211-2/+5
| | | | | | | | | | 32-bit offset jump tables just use real branch instructions and so aren't marked as data regions. We were still emitting the .end_data_region marker though, which assert()ed. rdar://11499158 llvm-svn: 157221
* Added support for rvalue references in debug informationSean Callanan2012-05-214-6/+92
| | | | | | | | (actually, mainly just hooked up support that was already there). Added a test case, although it's expected to fail right now unless you're using top-of-tree LLVM. llvm-svn: 157220
* Add basic delta-debugging script used for reducing analyzer crasher test cases.Ted Kremenek2012-05-211-0/+65
| | | | llvm-svn: 157219
* Added address space qualifier to intrinsic PointerType arguments.Pete Cooper2012-05-213-3/+16
| | | | llvm-svn: 157218
* CompileUnit::ResolveSymbolContext was only filling in the LineEntry ↵Jim Ingham2012-05-211-6/+28
| | | | | | regardless of what was passed in for "resolve_scope". I fixed that. llvm-svn: 157217
* objective-c: provide a useful 'fixit' suggestion whenFariborz Jahanian2012-05-213-1/+24
| | | | | | | errornously using commas to separate ObjC message arguments. // rdar://11376372 llvm-svn: 157216
* Fix use of an unitialized value in the LegalizeOps expansion for ISD::SUB. ↵Owen Anderson2012-05-211-1/+1
| | | | | | | | No in-tree targets exercise this path. Patch by Micah Villmow. llvm-svn: 157215
* Updated the object-pointer lookup logic to fixSean Callanan2012-05-211-13/+30
| | | | | | Objective-C "self," which is not a regular pointer. llvm-svn: 157214
* Fixed the new-syntax testcase to reflect how weSean Callanan2012-05-211-1/+1
| | | | | | print string literals. llvm-svn: 157213
* Revert r115805. An array type is required to have a range type,Eric Christopher2012-05-211-18/+14
| | | | | | | | | | however, the range can be unknown for the upper bound. Testcase to follow. Part of rdar://11457152 llvm-svn: 157212
* [analyzer] Bind UnknownVal to InitListExpr for unsupported typesAnna Zaks2012-05-212-2/+9
| | | | | | (ex: float). llvm-svn: 157211
* Fixes for performance to data formatters - Python < 3.0 is much slower when ↵Enrico Granata2012-05-211-114/+110
| | | | | | using True/False as compared to 1/0 for logical values. Wexploit this to our advantage. Other minor tweaks llvm-svn: 157209
* Fixed a nasty bug where JIT expressions didn't workSean Callanan2012-05-213-13/+39
| | | | | | | when stopped in a const method. Also updated our testsuite to ensure that JIT is forced in this case. llvm-svn: 157208
* Function template version of the previous patch.Rafael Espindola2012-05-212-4/+18
| | | | llvm-svn: 157207
* Produce a hidden symbol for zed inRafael Espindola2012-05-212-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | struct HIDDEN foo { }; template <class P> struct bar { }; template <> struct HIDDEN bar<foo> { DEFAULT static void zed(); }; void bar<foo>::zed() { } Before we would produce a hidden symbol in struct HIDDEN foo { }; template <class P> struct bar { }; template <> struct bar<foo> { DEFAULT static void zed(); }; void bar<foo>::zed() { } But adding HIDDEN to the specialization would cause us to produce a default symbol. llvm-svn: 157206
* [driver] When creating the compiler invocation out of command-lineArgyrios Kyrtzidis2012-05-216-16/+28
| | | | | | | | arguments, force use of clang frontend for the driver. Fixes rdar://11356765. llvm-svn: 157205
* Analyzer: Fix PR12905, a crash when encountering a call to a function named "C".Benjamin Kramer2012-05-212-10/+17
| | | | | | While there clean up indentation. llvm-svn: 157204
* Added an "rb" alias that sets breakpoints bySean Callanan2012-05-211-0/+9
| | | | | | regular expression. llvm-svn: 157202
* Thumb2: RSB source register should be rGRP not GPRnopc.Jim Grosbach2012-05-211-4/+4
| | | | | | t2RSB defined the operand correctly, but tRSBS didn't. llvm-svn: 157200
OpenPOWER on IntegriCloud