- Sep 30, 2016
-
-
Matthew Simpson authored
When building the steps for scalar induction variables, we previously attempted to determine if all the scalar users of the induction variable were uniform. If they were, we would only emit the step corresponding to vector lane zero. This optimization was too aggressive. We generally don't know the entire set of induction variable users that will be scalar. We have isScalarAfterVectorization, but this is only a conservative estimate of the instructions that will be scalarized. Thus, an induction variable may have scalar users that aren't already known to be scalar. To avoid emitting unused steps, we can only check that the induction variable is uniform. This should fix PR30542. Reference: https://llvm.org/bugs/show_bug.cgi?id=30542 llvm-svn: 282863
-
Dimitar Vlahovski authored
The breakage was because of the moving of the UTF functions to the llvm namespace llvm-svn: 282862
-
Michael Kruse authored
generateScalarLoad() and generateScalarStore() are used for explicit (MK_Array) memory accesses, therefore the method names were misleading. The names also were similar to generateScalarLoads() and generateScalarStores() (plural forms) which indeed handle scalar accesses. Presumbly, they were originally named to contrast VectorBlockGenerator::generateLoad(). Rename the two methods to generateArrayLoad(), respectively generateArrayStore(). llvm-svn: 282861
-
Etienne Bergeron authored
Summary: This test is broken on wndows 64-bit. The interception library is not able to hook on the memchr functions. Snippet of the function that is not hookable: ``` --- No source file ------------------------------------------------------------- 000007FEFA1A18CD CC int 3 000007FEFA1A18CE CC int 3 000007FEFA1A18CF CC int 3 --- f:\dd\vctools\crt\vcruntime\src\string\amd64_arm_arm64\memchr.c ------------ while ( cnt && (*(unsigned char *)buf != (unsigned char)chr) ) { 000007FEFA1A18D0 4D 85 C0 test r8,r8 000007FEFA1A18D3 74 0D je memchr+12h (07FEFA1A18E2h) 000007FEFA1A18D5 38 11 cmp byte ptr [rcx],dl 000007FEFA1A18D7 74 09 je memchr+12h (07FEFA1A18E2h) buf = (unsigned char *)buf + 1; 000007FEFA1A18D9 48 FF C1 inc rcx cnt--; 000007FEFA1A18DC 49 83 E8 01 sub r8,1 000007FEFA1A18E0 75 F3 jne memchr+5h (07FEFA1A18D5h) } ``` Reviewers: rnk Subscribers: kubabrecka, dberris, llvm-commits, chrisha Differential Revision: https://reviews.llvm.org/D25037 llvm-svn: 282860 -
Etienne Bergeron authored
Summary: On windows, the memcpy and memmove function can be the same. This is correcly detected when hooking, but it's not possible to report the right function name when doing symbolisation. The same fix was applied for the static asan unittest. We forgot to apply the fix for the dynamic asan tests. ``` lvm\projects\compiler-rt\test\asan/TestCases/Windows/.svn/text-base/intercept_memcpy.cc.svn-base:// CHECK-NEXT: __asan_{{.*}}mem{{.*}} ``` This patch is fixing this test (win64): ``` ddressSanitizer-x86_64-windows-dynamic :: TestCases/Windows/dll_intercept_memcpy_indirect.cc ``` Reviewers: rnk, vitalybuka Subscribers: llvm-commits, kubabrecka, chrisha, dberris Differential Revision: https://reviews.llvm.org/D25038 llvm-svn: 282859 -
Simon Pilgrim authored
llvm-svn: 282858
-
Simon Pilgrim authored
llvm-svn: 282857
-
Dylan McKay authored
Summary: This adds the ELF32 writer for AVR. Reviewers: kparzysz Subscribers: beanz, mgorny Differential Revision: https://reviews.llvm.org/D25031 llvm-svn: 282856
-
Dylan McKay authored
It was accidentally committed. llvm-svn: 282855
-
Dylan McKay authored
Summary: This change adds the AVR assembly instruction printer. No tests are included in this patch. I have left them downstream so we can add them once `llc` successfully runs (there's very few components left to upstream until this). Reviewers: arsenm, kparzysz Subscribers: wdng, beanz, mgorny Differential Revision: https://reviews.llvm.org/D25028 llvm-svn: 282854
-
Michael Kruse authored
The code generator always adds unconditional LoadInst and StoreInst, hence the MemoryAccess must be defined over all statement instances. llvm-svn: 282853
-
Dylan McKay authored
Summary: Previously, when allocating unspillable live ranges, we would never attempt to split. We would always bail out and try last ditch graph recoloring. This patch changes this by attempting to split all live intervals before performing recoloring. This fixes LLVM bug PR14879. I can't add test cases for any backends other than AVR because none of them have small enough register classes to trigger the bug. Reviewers: qcolombet Subscribers: MatzeB Differential Revision: https://reviews.llvm.org/D25070 llvm-svn: 282852
-
George Rimar authored
llvm-svn: 282851
-
George Rimar authored
llvm-svn: 282850
-
Pavel Labath authored
test broken in r282659. llvm-svn: 282849
-
Pavel Labath authored
llvm r282788 changed how the presence of windows DIA SDK is signalled. Adjust to that. llvm-svn: 282848
-
Rafael Espindola authored
The missing case was when a merge section was only referenced from non-alloca sections. llvm-svn: 282847
-
Victor Leschuk authored
llvm-svn: 282846
-
Rafael Espindola authored
We would crash when a non-alloca section pointed to a gced part of a merge section. That can happen when a C/c++ constant in put in a merge section and debug info is present. llvm-svn: 282845
-
Petr Hosek authored
When LLVM_INSTALL_TOOLCHAIN_ONLY is used and LLVM_TOOLCHAIN_TOOLS contains a tool which is a symlink, it would be ignored. This already worked before but got broken in r282510. Differential Revision: https://reviews.llvm.org/D25067 llvm-svn: 282844
-
Craig Topper authored
[AVX-512] Store address operand should be an input operand for the special stack spilling pseudos for XMM16-31 and YMM16-31 without VLX. llvm-svn: 282843
-
Craig Topper authored
[AVX-512] Add the special stack spilling pseudos for XMM16-31 and YMM16-31 without VLX to teh isFrameLoadOpcode and isFrameStoreOpcode. llvm-svn: 282842
-
Craig Topper authored
Revert r282835 "[AVX-512] Always use the full 32 register vector classes for addRegisterClass regardless of whether AVX512/VLX is enabled or not." Turns out this doesn't pass verify-machineinstrs. llvm-svn: 282841
-
Kostya Serebryany authored
llvm-svn: 282839
-
Adam Nemet authored
llvm-svn: 282838
-
Eric Liu authored
Reviewers: hokein Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D24963 llvm-svn: 282837
-
Craig Topper authored
[X86] Add AVX-512 VTs to findRepresentativeClass as well as v16i16 which was also missing. Change register class to include the extra 16 AVX512 registers. I'm not completely sure what this method does or why all the 256-bit VTs returned VR128RegClass when the comments on the method definiton say it should return the largest super register class. I just figured AVX-512 should be similar. llvm-svn: 282836
-
Craig Topper authored
[AVX-512] Always use the full 32 register vector classes for addRegisterClass regardless of whether AVX512/VLX is enabled or not. If AVX512 is disabled, the registers should already be marked reserved. Pattern predicates and register classes on instructions should take care of most of the rest. Loads/stores and physical register copies for XMM16-31 and YMM16-31 without VLX have already been taken care of. I'm a little unclear why this changed the register allocation of the SSE2 run of the sad.ll test, but the registers selected appear to be valid after this change. llvm-svn: 282835
-
Adam Nemet authored
llvm-svn: 282834
-
Piotr Padlewski authored
Summary: We don't want to decay hot callsites to import chains of hot callsites. The same mechanism is used in LIPO. Reviewers: tejohnson, eraman, mehdi_amini Subscribers: llvm-commits, mehdi_amini Differential Revision: https://reviews.llvm.org/D24976 llvm-svn: 282833
-
Matt Arsenault authored
For some reason there are both of these available, except for scalar 64-bit compares which only has u64. I'm not sure why there are both (I'm guessing it's for the one bit inputs we don't use), but for consistency always using the unsigned one. llvm-svn: 282832
-
Kostya Serebryany authored
[libFuzzer] remove the code for -print_pcs=1 with the old coverage. It still works with the new one (trace-pc-guard) llvm-svn: 282831
-
Jim Ingham authored
llvm-svn: 282830
-
Kostya Serebryany authored
[libFuzzer] more the feature set to InputCorpus; on feature update, change the feature counter of the old best input llvm-svn: 282829
-
Adam Nemet authored
llvm-svn: 282826
-
Jason Molenda authored
instruction inspection to UnwindPlans. llvm-svn: 282825
-
Enrico Granata authored
llvm-svn: 282824
-
Enrico Granata authored
Do not assume we will be able to discover the return type of this selector call, for that is not true in i386 mode llvm-svn: 282823
-
Justin Lebar authored
Summary: This lets people link against LLVM and their own version of the UTF library. I determined this only affects llvm, clang, lld, and lldb by running $ git grep -wl 'UTF[0-9]\+\|\bConvertUTF\bisLegalUTF\|getNumBytesFor' | cut -f 1 -d '/' | sort | uniq clang lld lldb llvm Tested with ninja lldb ninja check-clang check-llvm check-lld (ninja check-lldb doesn't complete for me with or without this patch.) Reviewers: rnk Subscribers: klimek, beanz, mgorny, llvm-commits Differential Revision: https://reviews.llvm.org/D24996 llvm-svn: 282822
-
Adam Nemet authored
This completes LV. llvm-svn: 282821
-