summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* [InstCombine] call SimplifyICmpInst with correct contextJingyue Wu2015-06-252-2/+26
| | | | | | | | | | | | | | | | | | | | | Summary: Fixes PR23809. Without passing the context to SimplifyICmpInst, we would use the assume to prove that the condition feeding the assume is trivially true (see isValidAssumeForContext in ValueTracking.cpp), causing the removal of the assume which may be useful for later optimizations. Test Plan: pr23800.ll Reviewers: hfinkel, majnemer Reviewed By: hfinkel Subscribers: henryhu, llvm-commits, wengxt, broune, meheff, eliben Differential Revision: http://reviews.llvm.org/D10695 llvm-svn: 240683
* COFF: Remove dead code.Rui Ueyama2015-06-251-10/+0
| | | | llvm-svn: 240682
* Diagnose undefined temporary symbols.Rafael Espindola2015-06-255-31/+12
| | | | | | | | | | | | We already disallowed .global .Lfoo so this is reasonable. This is a small cherry pick from r240130. llvm-svn: 240681
* Rename local variable CCCPrintActions -> CCCPrintPhases.Douglas Katzman2015-06-251-15/+12
| | | | | | | To match the '-ccc-print-phases' command-line flag. Also make two more 'for' loops range-based. NFC llvm-svn: 240680
* Make this test verify .debug_pubnames is actually missing.Paul Robinson2015-06-251-2/+2
| | | | | | It was matching at EOF regardless of whether the section was present. llvm-svn: 240679
* Rangify for loop in Inliner.cpp. NFC.Yaron Keren2015-06-251-8/+5
| | | | llvm-svn: 240678
* Fix a bug where we were trying to reconstruct ivars of ObjC types from the ↵Enrico Granata2015-06-256-1/+117
| | | | | | | | | | | | | | runtime in "expression parser mode" The expression parser mode allows UnknownAnyTy to make it all the way through, but that is bad for ivars because it means type layout fails horribly (as in, clang crashes) This patch fixes the issue by using the "variables view mode", which masks UnknownAnyTy as empty-type, and pointer-to UnknownAnyTy as void* This, in turn, allows LLDB to properly reconstruct ivars of IMP type in ObjC type - as per accompanying test case Fixes rdar://21471326 llvm-svn: 240677
* Add const qualifier to Mangled::GuessLanguageDawn Perchik2015-06-252-2/+2
| | | | llvm-svn: 240676
* COFF: Devirtualize mark(), markLive() and isCOMDAT().Rui Ueyama2015-06-256-67/+63
| | | | | | | | | | | | | | | | | | | | | | | Only SectionChunk can be dead-stripped. Previously, all types of chunks implemented these functions, but their functions were blank. Likewise, only DefinedRegular and DefinedCOMDAT symbols can be dead-stripped. markLive() function was implemented for other symbol types, but they were blank. I started thinking that the change I made in r240319 was a mistake. I separated DefinedCOMDAT from DefinedRegular because I thought that would make the code cleaner, but now we want to handle them as the same type here. Maybe we should roll it back. This change should improve readability a bit as this removes some dubious uses of reinterpret_cast. Previously, we assumed that all COMDAT chunks are actually SectionChunks, which was not very obvious. llvm-svn: 240675
* Use more range-based for loopsDouglas Katzman2015-06-253-58/+49
| | | | | | Differential Revision: http://reviews.llvm.org/D10738 llvm-svn: 240674
* Add Arg::getValues method with const 'this' and const resultDouglas Katzman2015-06-251-3/+2
| | | | llvm-svn: 240673
* DAGCombiner: Remove redundant checkMatt Arsenault2015-06-251-1/+1
| | | | | | | MemIntrinsicSDNode is already a subclass of MemSDNode, so the MemSDNode check is sufficient. llvm-svn: 240672
* [CFI] Run tests that use cfi diagnostic mode only if cxxabi parts of UBSan ↵Alexey Samsonov2015-06-257-0/+14
| | | | | | are available. llvm-svn: 240671
* GVN: If a branch has two identical successors, we cannot declare either dead.Peter Collingbourne2015-06-252-0/+42
| | | | | | | | | This previously caused miscompilations as a result of phi nodes receiving undef incoming values from blocks dominated by such successors. Differential Revision: http://reviews.llvm.org/D10726 llvm-svn: 240670
* [CUDA] Implemented __nvvm_atom_*_gen_* builtins.Artem Belevich2015-06-253-65/+237
| | | | | | | | | | | Integer variants are implemented as atomicrmw or cmpxchg instructions. Atomic add for floating point (__nvvm_atom_add_gen_f()) is implemented as a call to an overloaded @llvm.nvvm.atomic.load.add.f32.* LVVM intrinsic. Differential Revision: http://reviews.llvm.org/D10666 llvm-svn: 240669
* [sanitizer] Disable signal_segv_handler test.Evgeniy Stepanov2015-06-251-0/+2
| | | | | | Random failures on the bots. llvm-svn: 240668
* COFF: Simplify. NFC.Rui Ueyama2015-06-252-10/+11
| | | | llvm-svn: 240666
* COFF: Use std::equal to compare two lists of relocations.Rui Ueyama2015-06-251-13/+9
| | | | llvm-svn: 240665
* Omit 'nodebug' methods from the class description.Paul Robinson2015-06-252-1/+14
| | | | llvm-svn: 240664
* Submitting patch from Abhishek for:Greg Clayton2015-06-2510-3/+1013
| | | | | | http://reviews.llvm.org/D10309 llvm-svn: 240663
* Rename Mangled::GetLanguage to Mangled::GuessLanguageDawn Perchik2015-06-252-6/+6
| | | | | | | | | | | The language can not be definitively determined from the mangling, so this new name helps clarify that fact. This addresses the concerns raised in http://reviews.llvm.org/rL226962. Reviewed by: clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D10723 llvm-svn: 240662
* COFF: Don't use COFFHeader->NumberOfRelocations.Rui Ueyama2015-06-252-4/+8
| | | | | | | The size of the field is 16 bit, so it's inaccurate if the number of relocations in a section is more than 65535. llvm-svn: 240661
* Add const versions of SBFrame::GetFunctionName and SBFrame::IsInlined.Oleksiy Vyalov2015-06-253-3/+26
| | | | | | http://reviews.llvm.org/D10711 llvm-svn: 240660
* [NVPTX] Fixed a typo in __nvvm_atom_min_gen_l() type string.Artem Belevich2015-06-251-1/+1
| | | | | | Differential Revision: http://reviews.llvm.org/D10664 llvm-svn: 240659
* Update for llvm change.Rafael Espindola2015-06-252-2/+2
| | | | llvm-svn: 240658
* Fix autotools buildMichael Kruse2015-06-255-1/+12
| | | | | | | | | | | | There were two issues: * ISL's configure generates include/isl/stdint.h, not isl/stdint.h as assumed. This is also changed in the CMake build. * Need to pass --with-int=imath to ISL's configure; the default is gmp. Polly's configure has been regenerated due to changing configure.ac llvm-svn: 240657
* Add a test for a recent regression.Rafael Espindola2015-06-251-0/+13
| | | | llvm-svn: 240656
* llvm-nm: print 'n' instead of '?'Rafael Espindola2015-06-252-2/+7
| | | | | | This matches gnu nm and has the advantage that there is a upper case N. llvm-svn: 240655
* Fix #pragma redefine_extname when there is a local variable of the same ↵Aaron Ballman2015-06-253-3/+41
| | | | | | | | name. The local should not be renamed, only the externally-available declaration should be. Patch by Andrey Bokhanko! llvm-svn: 240653
* Update TestPrintStackTraces XFAIL once morePavel Labath2015-06-251-1/+1
| | | | | | | it seems the failure happens also with clang. The main thing which triggers the failure is architecture. llvm-svn: 240652
* Fix TestThreadAPI on LinuxTamas Berghammer2015-06-251-6/+4
| | | | | | | On Linux malloc calls itself in some case. Change the test case to handle this scenario. llvm-svn: 240651
* [PPC] Implement vmrgew and vmrgow instructionsKit Barton2015-06-256-4/+269
| | | | | | | | | This patch adds support for the vector merge even word and vector merge odd word instructions introduced in POWER8. Phabricator review: http://reviews.llvm.org/D10704 llvm-svn: 240650
* [AsmPrinter] Fix crash in handleIndirectSymViaGOTPCRelBruno Cardoso Lopes2015-06-252-2/+18
| | | | | | | | | | | Check for symbols in MCValue before using them. Bail out early in case they are null. This fixes PR23779. Differential Revision: http://reviews.llvm.org/D10712 rdar://problem/21532830 llvm-svn: 240649
* Fix unw_getcontext() return value on AArch64.Logan Chien2015-06-252-1/+9
| | | | | | | | unw_getcontext() should return UNW_ESUCCESS on success. Therefore, the assembly for AArch64 is incorrect because "ldr x0, #0" is a PC-relative load instead of an immediate value load. llvm-svn: 240648
* Doxygen-ify a few comments. NFCJonathan Roelofs2015-06-251-39/+36
| | | | llvm-svn: 240647
* Use computeSymbolSizes in llvm-symbolize.Rafael Espindola2015-06-253-22/+12
| | | | llvm-svn: 240646
* Use range loop. NFC.Rafael Espindola2015-06-252-20/+21
| | | | llvm-svn: 240645
* Modernize getELFDynamicSymbolIterators.Rafael Espindola2015-06-253-21/+13
| | | | | | | | * Have it return a iterator_range. * Remove the global function. * Rename to getDynamicSymbolIterators. llvm-svn: 240644
* Fix a crash by division by zero in analyzerDaniel Marjamaki2015-06-252-0/+11
| | | | | | | | Patch by takeshi-yoshimura! Differential Revision: http://reviews.llvm.org/D10145 llvm-svn: 240643
* Don't use std::make_unique.Benjamin Kramer2015-06-251-8/+9
| | | | | | | We still have to support C++11 standard libraries, make_unique is a C++14 feature. llvm-svn: 240642
* [PPC] Replace debug value skipping with getLastNonDebugInstr.Benjamin Kramer2015-06-251-16/+7
| | | | | | No functionality change intended. llvm-svn: 240641
* [ORC] Add ObjectTransformLayerJoseph Tremoulet2015-06-253-0/+414
| | | | | | | | | | | | | | | | Summary: This is a utility for clients that want to insert a layer that modifies each ObjectFile and then passes it along to the next layer. Reviewers: lhames Reviewed By: lhames Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D10456 llvm-svn: 240640
* Replace copy-pasted debug value skipping with MBB::getLastNonDebugInstrBenjamin Kramer2015-06-254-48/+20
| | | | | | No functional change intended. llvm-svn: 240639
* Enable TestInferiorCrashing and TestRecursiveInferior on androidPavel Labath2015-06-252-2/+5
| | | | | | | | | | | | | | | | | Summary: the original bug was fixed (a rogue breakpoint messing up inferior data structures) and the tests seems to pass now. Since android has a default SEGV handler, I have had to alter the test expectation in this case. Test Plan: Tests pass on android arm. Reviewers: tberghammer Subscribers: tberghammer, aemerson, lldb-commits Differential Revision: http://reviews.llvm.org/D10733 llvm-svn: 240638
* [mips] [IAS] Refactor the emitDirectiveModuleFP() functions. NFC.Toma Tabacu2015-06-253-28/+25
| | | | | | | | | | | | | | | | | | | | Summary: Simplify emitDirectiveModuleFP() by having it just print the current information from MipsABIFlagsSection and doing an updateABIInfo() before such calls. This prevents us from forgetting to update the STI.FeatureBits, because updateABIInfo() uses those to update the MipsABIFlagsSection object, and also makes sure we use the update mechanism from MipsABIFlagsSection. Reviewers: dsanders Reviewed By: dsanders Subscribers: llvm-commits, mpf Differential Revision: http://reviews.llvm.org/D10642 llvm-svn: 240637
* Take alignment into account in isSafeToLoadUnconditionallyArtur Pilipenko2015-06-252-6/+37
| | | | | | | | Reviewed By: hfinkel Differential Revision: http://reviews.llvm.org/D10475 llvm-svn: 240636
* Make XFAIL on TestPrintStackTraces more specificPavel Labath2015-06-251-4/+1
| | | | | | the thread creation failure was fixed, but a backtracing problem remains in some situations. llvm-svn: 240635
* [SystemZ] Only attempt RxSBG optimization for integer typesUlrich Weigand2015-06-251-2/+7
| | | | | | | | | | | | As pointed out by Justin Bogner (see r240520), SystemZDAGToDAGISel::Select currently attempts to convert boolean operations into RxSBG even on some non-integer types (in particular, vector types). This would not work in any case, and it happened to trigger undefined behaviour in allOnes. This patch verifies that we have a (<= 64-bit) integer type before attempting to perform this optimization. llvm-svn: 240634
* tsan: merge function definition and declarationDmitry Vyukov2015-06-251-10/+4
| | | | llvm-svn: 240633
* Remove XFAIL from TestCreateAfterAttachPavel Labath2015-06-251-3/+0
| | | | | | | The tested functionality is implemented now. The test remains XTIMEOUTed, because it times out occasionally, probably due to test suite deficiencies. llvm-svn: 240632
OpenPOWER on IntegriCloud