summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* [WebAssembly] Unify concepts of discarded and non-live input chunks. NFC.Sam Clegg2018-02-133-12/+9
| | | | | | | | | It seems redundant to store this information twice. None of the locations where this bit is checked care about the distinction. Differential Revision: https://reviews.llvm.org/D43250 llvm-svn: 325046
* [WebAssembly] Cleanup methods for add synthetic symbols to symbtab. NFC.Sam Clegg2018-02-133-35/+31
| | | | | | | | | | | | These were duplicating (incorrectly) some of the logic for handling conflicts, but since they are only ever added right at the start we can assume no existing symbols. Also rename these methods for clarity. Differential Revision: https://reviews.llvm.org/D43252 llvm-svn: 325045
* [GISel]: Add Pattern Matcher for G_FMUL.Aditya Nandakumar2018-02-132-0/+15
| | | | | | https://reviews.llvm.org/D43206 llvm-svn: 325044
* [GISel]: Make Pattern matcher for FADD commutativeAditya Nandakumar2018-02-131-3/+3
| | | | llvm-svn: 325043
* [AMDGPU] Cleanup in memory legalizer tests. NFC.Stanislav Mekhanoshin2018-02-135-527/+531
| | | | llvm-svn: 325042
* Document the shortcomings of DwarfExpression::addMachineReg().Adrian Prantl2018-02-131-4/+12
| | | | | | | | | | | | | Also make a drive-by-fix of a bug in the subregister scan code that only triggers with an incomplete or otherwise very irregular machine description. rdar://problem/37404493 This re-applies r324972 with an early exit in the case of a complete failure to make this commit NFC again as intended. llvm-svn: 325041
* Update StmtProfile.cpp to handle zero template arguments.Richard Trieu2018-02-132-2/+20
| | | | | | | Treat having no templates arguments differently than having zero template arguments when profiling. llvm-svn: 325040
* [InstCombine] fix test comment and add vector test; NFCSanjay Patel2018-02-131-9/+22
| | | | llvm-svn: 325039
* Fix coding style error.Rui Ueyama2018-02-131-3/+3
| | | | llvm-svn: 325038
* [InstCombine, InstSimplify] (re)move tests, regenerate checks; NFCSanjay Patel2018-02-133-236/+283
| | | | | | | | The InstCombine integer mul test file had tests that belong in InstSimplify (including fmul tests). Move things to where they belong and auto-generate complete checks for everything. llvm-svn: 325037
* [Debugify] Avoid verifier failure on non-definition subprogramsVedant Kumar2018-02-132-2/+8
| | | | | | | | | | If a function doesn't have an exact definition, don't apply debugify metadata as it triggers a DIVerifier failure. The issue is that it's invalid to have DILocations inside a DISubprogram which isn't a definition ("scope points into the type hierarchy!"). llvm-svn: 325036
* [DeadStoreElimination] Salvage debug info from dead instsVedant Kumar2018-02-132-0/+43
| | | | | | | | | | According to `llvm-dwarfdump --statistics` this salvages 43 additional unique source variables in a stage2 build of clang. It increases the size of the .debug_loc section by 0.002% (or 2864 bytes). Differential Revision: https://reviews.llvm.org/D43220 llvm-svn: 325035
* Revert r324903 "[AArch64] Refactor identification of SIMD immediates"Hans Wennborg2018-02-131-280/+368
| | | | | | | | | | | It caused "Cannot select: t33: f64 = AArch64ISD::FMOV Constant:i32<0>" in Chromium builds. See PR36369. > Get rid of icky goto loops and make the code easier to maintain (NFC). > > Differential revision: https://reviews.llvm.org/D42723 llvm-svn: 325034
* Use reinterpret_cast<> instead of C-style cast. NFC.Rui Ueyama2018-02-132-3/+3
| | | | | | | | It is currently interpreted as reinterpret_cast<>. Make it explicit. Differential Revision: https://reviews.llvm.org/D43247 llvm-svn: 325033
* [CodeGen] Print bundled instructions using the MIR syntax in -debug outputFrancis Visoiu Mistrih2018-02-132-10/+26
| | | | | | | | | | | | | | | | | Old syntax: BUNDLE implicit-def %r0, implicit-def %r1, implicit %r2 * %r0 = SOME_OP %r2 * %r1 = ANOTHER_OP internal %r0 New syntax: BUNDLE implicit-def %r0, implicit-def %r1, implicit %r2 { %r0 = SOME_OP %r2 %r1 = ANOTHER_OP internal %r0 } llvm-svn: 325032
* [AMDGPU] Change constant addr space to 4Yaxun Liu2018-02-1314-69/+79
| | | | | | Differential Revision: https://reviews.llvm.org/D43171 llvm-svn: 325031
* [AMDGPU] Change constant addr space to 4Yaxun Liu2018-02-1390-1249/+1240
| | | | | | Differential Revision: https://reviews.llvm.org/D43170 llvm-svn: 325030
* [clangd] Fixed findDefinitions to always return absolute paths.Ilya Biryukov2018-02-134-8/+51
| | | | | | | | Relative paths could be returned in some cases, e.g. when relative path is used in compilation arguments. This led to crash when trying to convert the path to URI. llvm-svn: 325029
* Make the ctype_byname::widen test cases pass on FreeBSD.Dimitry Andric2018-02-132-2/+2
| | | | llvm-svn: 325028
* Put type attributes after class keywordDimitry Andric2018-02-131-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Compiling `<functional>` in C++17 or higher mode results in: ``` functional:2500:1: warning: attribute '__visibility__' is ignored, place it after "class" to apply attribute to type declaration [-Wignored-attributes] _LIBCPP_TYPE_VIS ^ __config:701:46: note: expanded from macro '_LIBCPP_TYPE_VIS' # define _LIBCPP_TYPE_VIS __attribute__ ((__visibility__("default"))) ^ 1 warning generated. ``` Fix it by putting the attribute after the `class` keyword. Reviewers: EricWF, mclow.lists Reviewed By: EricWF Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D43209 llvm-svn: 325027
* Check that Symbol types are trivially destructibleSam Clegg2018-02-132-0/+4
| | | | | | | | | | | | | | This adds an extra level of static safety to our use of placement new to allocate Symbol types. It prevents the accidental addition on a non-trivially-destructible member that could allocate and leak memory. From the spec: Storage occupied by trivially destructible objects may be reused without calling the destructor. Differential Revision: https://reviews.llvm.org/D43244 llvm-svn: 325025
* [clangd] Log if CWD could not be changed. NFC.Ilya Biryukov2018-02-132-2/+10
| | | | llvm-svn: 325024
* [demangler] Support for inheriting constructors.Erik Pilkington2018-02-132-0/+9
| | | | | | Fixes PR33223. llvm-svn: 325023
* [demangler] Rewrite parse_nested_name in the new style.Erik Pilkington2018-02-131-280/+206
| | | | llvm-svn: 325022
* [clangd] Remove the RealFS layer from test VFS. NFC.Ilya Biryukov2018-02-131-111/+1
| | | | | | | It was required before because preambles could only be created on disk. All tests use in-memory preambles now. llvm-svn: 325021
* [sanitizer] Implement GetRSS on WindowsKostya Kortchinsky2018-02-131-1/+4
| | | | | | | | | | | | | | | | | | Summary: Pretty straightforward, returning the `WorkingSetSize` of a `PROCESS_MEMORY_COUNTERS` structure. AFAIU, `GetProcessMemoryInfo` is in `kernel32.lib` for Windows 7 and above. Support for earlier Windows versions would require `psapi.lib`, but I don't think those are supported by ASan? Reviewers: alekseyshl, rnk, vitalybuka Reviewed By: vitalybuka Subscribers: vitalybuka, kubamracek, delcypher, llvm-commits, #sanitizers Differential Revision: https://reviews.llvm.org/D42822 llvm-svn: 325020
* [DAGCombiner] Add one use check to fold (not (and x, y)) -> (or (not x), ↵Craig Topper2018-02-132-9/+4
| | | | | | | | | | | | | | | | | | | (not y)) Summary: If the and has an additional use we shouldn't invert it. That creates an additional instruction. While there add a one use check to the transform above that looked similar. Reviewers: spatel, RKSimon Reviewed By: RKSimon Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D43225 llvm-svn: 325019
* [X86] Add combine to shrink 64-bit ands when one input is an any_extend and ↵Craig Topper2018-02-134-46/+59
| | | | | | | | | | | | | | | | the other input guarantees upper 32 bits are 0. Summary: This gets the shift case from PR35792. Reviewers: spatel, RKSimon Reviewed By: RKSimon Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D43222 llvm-svn: 325018
* Use RelType in a few more places. NFC.Rafael Espindola2018-02-132-4/+4
| | | | llvm-svn: 325017
* Add a simpler version of addReloc. NFC.Rafael Espindola2018-02-133-19/+24
| | | | | | Extracted from a patch by Alexander Richardson! llvm-svn: 325016
* [clang-tidy] Update fuchsia-multiple-inheritance to not failJulie Hockett2018-02-132-4/+7
| | | | | | | | | | | | Updating the fuchsia-multiple-inheritance to gracefully handle unknown record types (e.g. templatized classes) by simply continuing, rather than asserting and failing. Fixes PR36052. Differential Revision: https://reviews.llvm.org/D43223 llvm-svn: 325015
* [Hexagon] Simplify some code, NFCKrzysztof Parzyszek2018-02-131-114/+44
| | | | llvm-svn: 325014
* [Hexagon] Remove unnecessary checkKrzysztof Parzyszek2018-02-131-2/+0
| | | | llvm-svn: 325013
* [ARM] Allow half types in ConstantPoolSjoerd Meijer2018-02-133-1/+178
| | | | | | | | | | | Change ARMConstantIslandPass to: - accept f16 literals as litpool entries, - if the litpool needs to be inserted in the middle of a big block, then we need to 4-byte align the next instruction in ARM mode. Differential Revision: https://reviews.llvm.org/D42784 llvm-svn: 325012
* An updated test to show the current warnings produced for implicit ↵Andrew V. Tischenko2018-02-131-0/+14
| | | | | | conversions from 'double' to 'float'. llvm-svn: 325011
* [DAG] fix type of undef returned by getNode()Sanjay Patel2018-02-132-2/+17
| | | | | | | | The bug has been lying dormant, but apparently was never exposed, until after rL324941 because we didn't return the correct result for shifts with undef operands. llvm-svn: 325010
* Revert r325001: [CallSiteSplitting] Support splitting of blocks with instrs ↵Florian Hahn2018-02-137-433/+151
| | | | | | | | before call. Due to memsan not being happy with the array of ValueToValue maps. llvm-svn: 325009
* [IR] Fix creating mutable versions of TBAA access tagsIvan A. Kosarev2018-02-132-11/+15
| | | | | | | | | | Due to a typo in D41565, mutable TBAA tags created with createMutableTBAAAccessTag() lose their base types. This patch fixes that typo and updates tests respectively. Differential Revision: https://reviews.llvm.org/D42364 llvm-svn: 325008
* [CallSiteSplitting] Clear ValueToValue maps.Florian Hahn2018-02-131-0/+4
| | | | llvm-svn: 325006
* [CallSiteSplitting] Dereference pointer earlier.Florian Hahn2018-02-131-3/+3
| | | | | | This should make the sanitizers happy. llvm-svn: 325004
* [InstCombine] Simplify getLogBase2 case for scalar/splats. NFCI.Simon Pilgrim2018-02-131-3/+2
| | | | llvm-svn: 325003
* [CallSiteSplitting] Fix new-pm test, as TargetIRAnalysis is run earlier nowFlorian Hahn2018-02-131-1/+1
| | | | llvm-svn: 325002
* [CallSiteSplitting] Support splitting of blocks with instrs before call.Florian Hahn2018-02-136-150/+428
| | | | | | | | | | | | | | | | | | For basic blocks with instructions between the beginning of the block and a call we have to duplicate the instructions before the call in all split blocks and add PHI nodes for uses of the duplicated instructions after the call. Currently, the threshold for the number of instructions before a call is quite low, to keep the impact on binary size low. Reviewers: junbuml, mcrosier, davidxl, davide Reviewed By: junbuml Differential Revision: https://reviews.llvm.org/D41860 llvm-svn: 325001
* [ARM] Don't print "Requires NEON" error message for M-profileAndre Vieira2018-02-132-2/+4
| | | | | | Differential Revision: https://reviews.llvm.org/D43125 llvm-svn: 325000
* [X86] Rename function main->foo in CodeGen/X86/pr35316.ll. NFCAlexander Ivchenko2018-02-131-2/+2
| | | | | | Using "void main" might be confusing for some cases. llvm-svn: 324997
* [Thumb] Handle addressing mode AddrMode5FP16Sjoerd Meijer2018-02-132-0/+38
| | | | | | | | This addressing mode wasn't checked, so we were running in an assert. Differential Revision: https://reviews.llvm.org/D43179 llvm-svn: 324996
* [clang-format] Support text proto extensionsKrasimir Georgiev2018-02-135-6/+113
| | | | | | | | | | | | | | | | | | | | | | Summary: This adds support for text proto extensions, like: ``` msg { [type.type/ext] { key: value } } ``` Reviewers: djasper Reviewed By: djasper Subscribers: klimek, cfe-commits Differential Revision: https://reviews.llvm.org/D43180 llvm-svn: 324995
* [LoopInterchange] Check number of latch successors before accessing them.Florian Hahn2018-02-132-1/+41
| | | | | | | | | | | | | | | | In cases where the OuterMostLoopLatchBI only has a single successor, accessing the second successor will fail. This fixes a failure when building the test-suite with loop-interchange enabled. Reviewers: mcrosier, karthikthecool, davide Reviewed by: karthikthecool Differential Revision: https://reviews.llvm.org/D42906 llvm-svn: 324994
* [clangd] Remove an already-done FIXME, NFCHaojian Wu2018-02-131-1/+0
| | | | llvm-svn: 324993
* [clangd] SymbolLocation only covers symbol name.Haojian Wu2018-02-134-44/+33
| | | | | | | | | | | | | | Summary: * Change the offset range to half-open, [start, end). * Fix a few fixmes. Reviewers: sammccall Subscribers: klimek, ilya-biryukov, jkorous-apple, ioeric, cfe-commits Differential Revision: https://reviews.llvm.org/D43182 llvm-svn: 324992
OpenPOWER on IntegriCloud