summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* [MSSA] Fix PR28880 by fixing use optimizer's lower bound tracking behavior.Daniel Berlin2016-08-082-4/+67
| | | | | | | | | | | | | | | | Summary: In the use optimizer, we need to keep of whether the lower bound still dominates us or else we may decide a lower bound is still valid when it is not due to intervening pushes/pops. Fixes PR28880 (and probably a bunch of other things). Reviewers: george.burgess.iv Subscribers: MatzeB, llvm-commits, sebpop Differential Revision: https://reviews.llvm.org/D23237 llvm-svn: 277978
* [JumpThreading] Fix handling of aliasing metadata.Eli Friedman2016-08-087-17/+103
| | | | | | | | | | | | | | | | | | Summary: The correctness fix here is that when we CSE a load with another load, we need to combine the metadata on the two loads. This matches the behavior of other passes, like instcombine and GVN. There's also a minor optimization improvement here: for load PRE, the aliasing metadata on the inserted load should be the same as the metadata on the original load. Not sure why the old code was throwing it away. Issue found by inspection. Differential Revision: http://reviews.llvm.org/D21460 llvm-svn: 277977
* Pass information in a record instead of stack. NFCSerge Pavlov2016-08-085-106/+105
| | | | | | | | | Functions of Sema that work with building of nested name specifiers have too many parameters (BuildCXXNestedNameSpecifier already expects 10 arguments). With this change the information about identifier and its context is packed into a structure, which is then passes to the semantic functions. llvm-svn: 277976
* [compiler-rt][XRay] Default COMPILER_RT_BUILD_XRAY to ONDean Michael Berris2016-08-081-3/+1
| | | | llvm-svn: 277975
* [compiler-rt][XRay] Fix XRay test build dependenciesDean Michael Berris2016-08-082-25/+23
| | | | llvm-svn: 277974
* [MC] Delete use of *structors_used.Davide Italiano2016-08-084-23/+0
| | | | | | | Jim Grosbach and Kevin Enderby think those are not used anymore. Originally submitted by: Rafael Espindola llvm-svn: 277973
* [SimplifyLibCalls] Emit sqrt intrinsic instead of a libcall.Davide Italiano2016-08-082-3/+4
| | | | llvm-svn: 277972
* [compiler-rt][XRay] Implement __xray_unpatch() and __xray_remove_handler()Dean Michael Berris2016-08-086-13/+172
| | | | | | | | | | | | | | | | | | Summary: We also add one test (and the XRay testing infrastructure) to exercise the patching and unpatching code. This uses the XRay API exported through the headers as well, installing a custom log handler. Depends on D23101 for the updated emitted code alignment for the return/entry sleds. Reviewers: rSerge, echristo, rnk Subscribers: tberghammer, danalbert, srhines, mehdi_amini, llvm-commits Differential Revision: https://reviews.llvm.org/D23154 llvm-svn: 277971
* Fix copy/move constructor annotation for the uses-allocator test types.Eric Fiselier2016-08-081-9/+19
| | | | | | | Previously the copy/move constructors of the test types did not properly set the arg_id to T const& or T&& respectivly. llvm-svn: 277970
* [SROA] Fix crash with lifetime intrinsic partially covering alloca.Eli Friedman2016-08-082-1/+22
| | | | | | | | | | | | | Summary: PromoteMemToReg looks specifically for the pattern bitcast+lifetime.start (or a bitcast-equivalent GEP); any offset will lead to an assertion failure. Fixes https://llvm.org/bugs/show_bug.cgi?id=27999 . Differential Revision: https://reviews.llvm.org/D22737 llvm-svn: 277969
* [libcxx] Add "flag" default arg: basic_regex ptr_size_flag ctorHubert Tong2016-08-072-2/+41
| | | | | | | | | | | | | | | | | | | | | | Summary: The synopsis in C++11 subclause 28.8 [re.regex] has: ``` basic_regex(const charT* p, size_t len, flag_type f = regex_constants::ECMAScript); ``` The default argument is added to libc++ by this change. Reviewers: mclow.lists, rsmith, hubert.reinterpretcast Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D22702 Reapplies r277966. Patch by Jason Liu! llvm-svn: 277968
* Revert r277966. Forgot patch attribution.Hubert Tong2016-08-072-41/+2
| | | | llvm-svn: 277967
* [libcxx] Add "flag" default arg: basic_regex ptr_size_flag ctorHubert Tong2016-08-072-2/+41
| | | | | | | | | | | | | | | | | | | Summary: The synopsis in C++11 subclause 28.8 [re.regex] has: ``` basic_regex(const charT* p, size_t len, flag_type f = regex_constants::ECMAScript); ``` The default argument is added to libc++ by this change. Reviewers: mclow.lists, rsmith, hubert.reinterpretcast Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D22702 llvm-svn: 277966
* [AVX-512] Improve lowering of inserting a single element into lowest element ↵Craig Topper2016-08-074-20/+35
| | | | | | of a 512-bit vector of zeroes by using vmovq/vmovd/vmovss/vmovsd. llvm-svn: 277965
* Mark LWG 2726 as complete. No code change needed.Eric Fiselier2016-08-071-1/+1
| | | | llvm-svn: 277964
* [SLC] Emit an intrinsic instead of a libcall for pow.Davide Italiano2016-08-072-12/+16
| | | | | | Differential Revision: https://reviews.llvm.org/D22104 llvm-svn: 277963
* Revert r277905, it caused PR28894Nico Weber2016-08-072-388/+70
| | | | llvm-svn: 277962
* [AVX-512] Add 512-bit logical operations to load folding tables. Add avx512f ↵Craig Topper2016-08-073-146/+414
| | | | | | stack folding test and move some tests from the avx512vl test. llvm-svn: 277961
* [AVX-512] Add EVEX encoded floating point MAX/MIN instructions to the load ↵Craig Topper2016-08-072-3/+106
| | | | | | folding tables. llvm-svn: 277960
* [X86] lowerVectorShuffle - ensure that undefined mask elements only use ↵Simon Pilgrim2016-08-071-0/+9
| | | | | | | | SM_SentinelUndef Help lowering and combining (which can specify SM_SentinelZero mask elements) share more shuffle matching code. llvm-svn: 277959
* AVX-512: Changed lowering of BITCAST between i1 vectors and i8/i16/i32 ↵Elena Demikhovsky2016-08-0719-758/+631
| | | | | | | | | | | integer values Optimized lowering of BITCAST node. The BITCAST node can be replaced with COPY_TO_REG instead of KMOV. It allows to suppress two opposite BITCAST operations and avoid redundant "movs". Differential Revision: https://reviews.llvm.org/D23247 llvm-svn: 277958
* [X86][AVX512BW] Add sext/zext AVX512BW 512-bit vector testsSimon Pilgrim2016-08-072-60/+128
| | | | llvm-svn: 277957
* [X86][AVX512] Add sext/zext to 512-bit vector testsSimon Pilgrim2016-08-072-0/+892
| | | | llvm-svn: 277956
* [AVX512] integer comparisions enumeration.Asaf Badouh2016-08-073-39/+52
| | | | | | | | | | fix Bug 28842 https://llvm.org/bugs/show_bug.cgi?id=28842 Differential Revision: https://reviews.llvm.org/D22212 llvm-svn: 277955
* AVX-512: Added a test for cmp intrinsicsElena Demikhovsky2016-08-071-0/+50
| | | | | | | | | | This is a new test that should explore a current suboptimal sequence in passing values between cmp and kor intrinsics. The code will be optimized in an upcoming patch. Submitted bug here: https://llvm.org/bugs/show_bug.cgi?id=28839 llvm-svn: 277954
* Update clang tests for LLVM r277950David Majnemer2016-08-071-2/+2
| | | | | | | We infer inbounds on GEPs of allocas leading to minor perturbations in tests. llvm-svn: 277953
* [InstSimplify] Fold gep (gep V, C), (sub 0, V) to CDavid Majnemer2016-08-072-0/+33
| | | | llvm-svn: 277952
* [InstSimplify] Try hard to simplify pointer comparisonsDavid Majnemer2016-08-072-0/+23
| | | | | | | Simplify ptrtoint comparisons involving operands with different source types. llvm-svn: 277951
* [InstCombine] Infer inbounds on geps of allocasDavid Majnemer2016-08-072-3/+22
| | | | llvm-svn: 277950
* [X86] Add commutable floating point max/min instructions to the load folding ↵Craig Topper2016-08-073-27/+221
| | | | | | tables. llvm-svn: 277949
* [AVX-512] Add andnps/andnpd to the avx512vl stack folding test.Craig Topper2016-08-071-0/+56
| | | | llvm-svn: 277948
* [X86] Simplify a shuffle mask copy. NFCCraig Topper2016-08-071-4/+2
| | | | llvm-svn: 277947
* Revert "Revert "[LoopSimplify] Fix updating LCSSA after separating nested ↵Michael Zolotukhin2016-08-072-1/+48
| | | | | | | | | loops."" This reverts commit r277901. Reaaply the commit as it looks like it has nothing to do with the bots failures. llvm-svn: 277946
* [ExecutionEngine][RuntimeDyld] Move JITSymbol from ExecutionEngine to ↵Lang Hames2016-08-073-1/+1
| | | | | | | | | RuntimeDyld. JITSymbol really belongs in RuntimeDyld. This should fix the llvm-rtdyld link failures caused by r277943. llvm-svn: 277945
* [RuntimeDyld] Remove symbol that is unused as of r277943.Lang Hames2016-08-071-1/+0
| | | | llvm-svn: 277944
* [RuntimeDyld] Replace manual flag checks with JITSymbolFlags::fromObjectSymbol.Lang Hames2016-08-071-13/+5
| | | | llvm-svn: 277943
* [ORC] Re-apply r277896, removing bogus triples and datalayouts that broke testsLang Hames2016-08-067-27/+68
| | | | | | on linux last time. llvm-svn: 277942
* [libFuzzer] make libFuzzer work with a bit older clang versionsKostya Serebryany2016-08-061-8/+10
| | | | llvm-svn: 277941
* [libFuzzer] don't print bogus error messageKostya Serebryany2016-08-061-2/+3
| | | | llvm-svn: 277940
* [X86][AVX2] Improve sign/zero extension on AVX2 targetsSimon Pilgrim2016-08-063-31/+25
| | | | | | Split extensions to large vectors into 256-bit chunks - the equivalent of what we do with pre-AVX2 into 128-bit chunks llvm-svn: 277939
* CoroSplit: Squash unused variable FnTrigger warning in NDEBUGGor Nishanov2016-08-061-0/+2
| | | | llvm-svn: 277938
* [Coroutines] Passify the build bots. Remove restart-trigger.ll test for nowGor Nishanov2016-08-061-16/+0
| | | | llvm-svn: 277937
* [Coroutines] Part 5: Add CGSCC restart triggerGor Nishanov2016-08-067-8/+176
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: CoroSplit pass processes the coroutine twice. First, it lets it go through complete IPO optimization pipeline as a single function. It forces restart of the pipeline by inserting an indirect call to an empty function "coro.devirt.trigger" which is devirtualized by CoroElide pass that triggers a restart of the pipeline by CGPassManager. (In later patches, when CoroSplit pass sees the same coroutine the second time, it splits it up, adds coroutine subfunctions to the SCC to be processed by IPO pipeline.) Documentation and overview is here: http://llvm.org/docs/Coroutines.html. Upstreaming sequence (rough plan) 1.Add documentation. (https://reviews.llvm.org/D22603) 2.Add coroutine intrinsics. (https://reviews.llvm.org/D22659) 3.Add empty coroutine passes. (https://reviews.llvm.org/D22847) 4.Add coroutine devirtualization + tests. ab) Lower coro.resume and coro.destroy (https://reviews.llvm.org/D22998) c) Do devirtualization (https://reviews.llvm.org/D23229) 5.Add CGSCC restart trigger + tests. <= we are here 6.Add coroutine heap elision + tests. 7.Add the rest of the logic (split into more patches) Reviewers: mehdi_amini, majnemer Subscribers: llvm-commits, mehdi_amini Differential Revision: https://reviews.llvm.org/D23234 llvm-svn: 277936
* Add the new scan-build option (--show-description) in the 4.0 release notesSylvestre Ledru2016-08-061-0/+4
| | | | llvm-svn: 277935
* [AVX-512] Add SQRT/RCP14/RNDSCALE to hasUndefRegUpdate.Craig Topper2016-08-061-0/+16
| | | | llvm-svn: 277934
* [AVX-512] Add AVX-512 scalar CVT instructions to hasUndefRegUpdate.Craig Topper2016-08-063-67/+71
| | | | llvm-svn: 277933
* [AVX-512] Add AVX512 run line to a test and re-generate the checks. Future ↵Craig Topper2016-08-061-265/+835
| | | | | | commits will refine some of the sequences. llvm-svn: 277932
* [X86] Add VRCPSSr_Int, VRSQRTSSr_Int, VSQRTSSr_Int, and VSQRTSDr_Int to ↵Craig Topper2016-08-061-0/+4
| | | | | | hasUndefRegUpdate. llvm-svn: 277931
* [X86][SSE] Enable commutation between MOVHLPS and UNPCKHPDSimon Pilgrim2016-08-067-23/+35
| | | | | | | | Assuming SSE2 is available then we can safely commute between these, removing some unnecessary register moves and improving memory folding opportunities. VEX encoded versions don't benefit so I haven't added support to them. llvm-svn: 277930
* COFF ARM: Fix typos in the relocation testSaleem Abdulrasool2016-08-061-3/+3
| | | | | | | | Fix comments. NFC. Patch by Martin Storsjö! llvm-svn: 277929
OpenPOWER on IntegriCloud