- Aug 14, 2016
-
-
Sanjoy Das authored
llvm-svn: 278606
-
Mehdi Amini authored
Recommit 278600 with some fixes to make the test more robust. llvm-svn: 278604
-
Mehdi Amini authored
This reverts commit r278600. The unittest does not pass on MSVC, there is an extra move. Investigating how to make it more robust. llvm-svn: 278603
-
Yaron Keren authored
Limit DenseMap::setNumEntries input to 1<<31, in accordance with the 31 bits allocated to NumEntries. std::numeric_limits<int>::max() may be something else than 1<<31. llvm-svn: 278602
-
Mehdi Amini authored
llvm-svn: 278601
-
Mehdi Amini authored
llvm-svn: 278600
-
Sanjay Patel authored
Tests are slightly modified versions of those written by Sunita Marathe in D23391. llvm-svn: 278599
-
- Aug 13, 2016
-
-
Aditya Kumar authored
llvm-svn: 278598
-
Craig Topper authored
[X86] Add a check of isCommutable at the top of X86InstrInfo::findCommutedOpIndices. Most callers don't check if the instruction is commutable before calling. This saves us the trouble of ending up in the default of the switch and having to determine if this is an FMA or not. llvm-svn: 278597
-
Craig Topper authored
llvm-svn: 278596
-
Craig Topper authored
llvm-svn: 278595
-
Craig Topper authored
[X86] Remove patterns for (vzmovl (insert_subvector undef, (scalar_to_vector))) as the (vzmovl VR256) pattern has higher priority. NFC llvm-svn: 278594
-
Craig Topper authored
[AVX-512] Remove an AddedComplexity that was prioritizing basic vzmovl patterns over more complex ones that produce better code. llvm-svn: 278593
-
Craig Topper authored
Fixes PR28961. llvm-svn: 278592
-
Teresa Johnson authored
Summary: Refactor the existing support into a LoopDataPrefetch implementation class and a LoopDataPrefetchLegacyPass class that invokes it. Add a new LoopDataPrefetchPass for the new pass manager that utilizes the LoopDataPrefetch implementation class. Reviewers: mehdi_amini Subscribers: sanjoy, mzolotukhin, nemanjai, llvm-commits Differential Revision: https://reviews.llvm.org/D23483 llvm-svn: 278591
-
Matt Arsenault authored
llvm-svn: 278590
-
Matt Arsenault authored
Add test if the constant offset looks unaligned. llvm-svn: 278589
-
Matt Arsenault authored
llvm-svn: 278588
-
Hans Wennborg authored
llvm-svn: 278587
-
Eugene Zelenko authored
llvm-svn: 278586
-
Pete Cooper authored
Almost all of the method here are only analysing Value's as opposed to mutating them. Mark all of the easy ones as const. llvm-svn: 278585
-
Sanjoy Das authored
`IVVisitor::visitCast` used to have the invariant that if the instruction it was passed was a sext or zext instruction, the result of the instruction would be wider than the induction variable. This is no longer true after rL275037, so this change teaches `IndVarSimplify` s implementation of `IVVisitor::visitCast` to work with the relaxed invariant. A corresponding change to SimplifyIndVar to preserve the said invariant after rL275037 would also work, but given how `IVVisitor::visitCast` is spelled (no indication of said invariant), I figured the current fix is cleaner. Fixes PR28935. llvm-svn: 278584
-
Eugene Zelenko authored
Differential revision: https://reviews.llvm.org/D23478 llvm-svn: 278583
-
Kostya Serebryany authored
llvm-svn: 278582
-
Justin Lebar authored
Summary: This avoids a small O(n^2) loop. Reviewers: asbirlea Subscribers: mzolotukhin, llvm-commits, arsenm Differential Revision: https://reviews.llvm.org/D23473 llvm-svn: 278581
-
Justin Lebar authored
Summary: In getVectorizablePrefix, this is less efficient (because we have to iterate over the BB twice), but boy is it simpler. Given how much trouble we've had here, I think the simplicity gain is worthwhile. In reorder(), this is actually more efficient, as DominatorTree::dominates iterates over the BB from the beginning when the two instructions are in the same BB. Reviewers: asbirlea Subscribers: arsenm, llvm-commits, mzolotukhin Differential Revision: https://reviews.llvm.org/D23472 llvm-svn: 278580
-
Mehdi Amini authored
These were found fuzzing with ASAN. llvm-svn: 278579
-
Justin Lebar authored
llvm-svn: 278578
-
Hans Wennborg authored
llvm-svn: 278577
-
Dominic Chen authored
Summary: This test was resulting in asan/valgrind failures due to undefined DWARF register mappings for WebAssembly, and was disabled in r278495. These have been resolved. Reviewers: sunfish, dschuff Subscribers: bkramer, llvm-commits, jfb Differential Revision: https://reviews.llvm.org/D23459 llvm-svn: 278576
-
Haicheng Wu authored
Fixed a bug in the test case. To fix PR28104, this patch restricts tail merging to blocks that belong to the same loop after MBP. llvm-svn: 278575
-
Dominic Chen authored
Summary: If the backend does not define LLVM/DWARF register mappings, the associated variables are undefined since the map initializer is called by auto-generated TableGen routines. This patch initializes the pointers and sizes to nullptr and zero, respectively, and checks that they are valid before searching for a mapping. Reviewers: grosbach, dschuff Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D23458 llvm-svn: 278574
-
Tim Shen authored
InnerLoopVectorizer shouldn't handle a loop with cycles inside the loop body, even if that cycle isn't a natural loop. Fixes PR28541. Differential Revision: https://reviews.llvm.org/D22952 llvm-svn: 278573
-
Duncan P. N. Exon Smith authored
On a Windows build of Chromium, r278532 (up to r278539) X86FrameLowering::emitEpilogue because it wasn't wary enough of the return of MachineBasicBlock::getFirstTerminator. Guard all the uses here. Note that r278532 *looks* like an NFC commit (just an API change), but it removes a couple of layers of abstraction and is probably causing optimization differences in MSVC. llvm-svn: 278572
-
Reid Kleckner authored
They aren't static, and moving them to the entry block across something else will only result in tears. Root cause of http://crbug.com/636558. llvm-svn: 278571
-
Pete Cooper authored
Pattern match has some paths which can operate on constant instructions, but not all. This adds a version of m_value() to return const Value* and changes ICmp matching to use auto so that it can match both constant and mutable instructions. Tests also included for both mutable and constant ICmpInst matching. This will be used in a future commit to constify ValueTracking.cpp. llvm-svn: 278570
-
Tim Shen authored
Differential Revision: https://reviews.llvm.org/D22951 llvm-svn: 278569
-
Artem Belevich authored
This bring LLVM-generated PTX closer to what nvcc generates and avoids triggering issues in ptxas. For instance, ptxas does not accept .s16 (or .u16) registers as operands for .fp16 instructions. Differential Revision: https://reviews.llvm.org/D23460 llvm-svn: 278568
-
Saleem Abdulrasool authored
llvm-svn: 278567
-
Teresa Johnson authored
Summary: The BitcodeWriterPass was ported a couple years ago, and predates the PassInfoMixin. Make BitcodeWriterPass from that base class. Should BitcodeWriterPass be added to the PassRegistry.def file? It seems like that is only for passes that can be added arbitrarily, e.g. via the -passes flag to the opt tool. Whereas the bitcode writer is added specially based on the output type (and requires an output stream and other parameters). For now I have left it out of the PassRegistry, but let me know if it should go there. Finally, I was considering an NFC change of the legacy WriteBitcodePass to BitcodeWriterLegacyPass to make its usage clearer and more consistent with other legacy passes. WDYT? Reviewers: mehdi_amini Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D23465 llvm-svn: 278566
-