- Oct 30, 2017
-
-
Max Kazantsev authored
llvm-svn: 316889
-
Florian Hahn authored
llvm-svn: 316888
-
Florian Hahn authored
This version of the patch includes a fix addressing a stage2 LTO buildbot failure and addressed some additional nits. Original commit message: This updates the SCCP solver to use of the ValueElement lattice for parameters, which provides integer range information. The range information is used to remove unneeded icmp instructions. For the following function, f() can be optimized to ret i32 2 with this change source_filename = "sccp.c" target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" ; Function Attrs: norecurse nounwind readnone uwtable define i32 @main() local_unnamed_addr #0 { entry: %call = tail call fastcc i32 @f(i32 1) %call1 = tail call fastcc i32 @f(i32 47) %add3 = add nsw i32 %call, %call1 ret i32 %add3 } ; Function Attrs: noinline norecurse nounwind readnone uwtable define internal fastcc i32 @f(i32 %x) unnamed_addr #1 { entry: %c1 = icmp sle i32 %x, 100 %cmp = icmp sgt i32 %x, 300 %. = select i1 %cmp, i32 1, i32 2 ret i32 %. } attributes #1 = { noinline } Reviewers: davide, sanjoy, efriedma, dberlin Reviewed By: davide, dberlin Subscribers: mcrosier, gberry, mssimpso, dberlin, llvm-commits Differential Revision: https://reviews.llvm.org/D36656 llvm-svn: 316887 -
Gabor Horvath authored
llvm-svn: 316886
-
Gabor Horvath authored
Differential Revision: https://reviews.llvm.org/D37470 llvm-svn: 316885
-
Max Kazantsev authored
It is done to uniformly handle instructions removal. Differential Revision: https://reviews.llvm.org/D39369 llvm-svn: 316884
-
Craig Topper authored
[X86] Rearrange code in X86InstrInfo.cpp to put all the foldMemoryOperandImpl methods together without partial/undef register handling in the middle. NFC I have a future patch that wants to make use of the one of the partial functions in one of the earlier memory folding methods and the current ordering prevents that. llvm-svn: 316883
-
Craig Topper authored
llvm-svn: 316882
-
Craig Topper authored
llvm-svn: 316881
-
Rui Ueyama authored
Discarded section's Repl always points to itself, so returning Sec is not different from returning Sec->Repl. llvm-svn: 316880
-
Rui Ueyama authored
This bit is to manage whether an input section has already been assigned to some output section by linker scripts or not. So it logically belongs to InputSectionBase. SectionBase is a common base class for input and output sections, so that wasn't the right place to define the bit. llvm-svn: 316879
-
Rui Ueyama authored
llvm-svn: 316878
-
Peter Collingbourne authored
edata needs to be set to the end of the last mapped initialized section. We were previously mishandling the case where there were no non-mapped sections by setting it to the end of the last section in the output file. Differential Revision: https://reviews.llvm.org/D39399 llvm-svn: 316877
-
Rui Ueyama authored
llvm-svn: 316876
-
Simon Pilgrim authored
llvm-svn: 316875
-
Marshall Clow authored
llvm-svn: 316874
-
Marshall Clow authored
llvm-svn: 316873
-
Philip Pfaffe authored
Summary: When GPUNodeBuilder creates loops inside the kernel, it dispatches to IslNodeBuilder. This however is surprisingly dangerous, since it accesses the AST Node's user through the wrong type. This patch fixes this problem by overriding createFor correctly. This fixes PR35010. Reviewers: grosser, bollu, Meinersbur Reviewed By: Meinersbur Subscribers: Meinersbur, nemanjai, pollydev, llvm-commits, kbarton Differential Revision: https://reviews.llvm.org/D39364 llvm-svn: 316872
-
Simon Pilgrim authored
Max depth was being exceeded which could prevent some combines working llvm-svn: 316871
-
Philip Pfaffe authored
Add missing %loadPolly directive to support out of tree builds. One of the changes is somewhat bigger, because the directive turns on LLVM names, and the testcase deosn't use those. llvm-svn: 316870
-
Sanjay Patel authored
The old PM sets the options of what used to be known as "latesimplifycfg" on the instantiation after the vectorizers have run, so that's what we'redoing here. FWIW, there's a later SimplifyCFGPass instantiation in both PMs where we do not set the "late" options. I'm not sure if that's intentional or not. Differential Revision: https://reviews.llvm.org/D39407 llvm-svn: 316869
-
Simon Pilgrim authored
llvm-svn: 316868
-
Marshall Clow authored
llvm-svn: 316867
-
Simon Pilgrim authored
Introduce a isConstOrDemandedConstSplat helper function that can recognise a constant splat build vector for at least the demanded elts we care about. llvm-svn: 316866
-
Simon Pilgrim authored
llvm-svn: 316865
-
Craig Topper authored
I believe the test_sub_1_cmp_1_setcc_ugt test case is being miscompiled in the fast inc/dec case. llvm-svn: 316864
-
Rui Ueyama authored
llvm-svn: 316863
-
Rui Ueyama authored
llvm-svn: 316862
-
- Oct 29, 2017
-
-
Craig Topper authored
[X86] Remove combine that turns X86ISD::LSUB into X86ISD::LADD. Update patterns that depended on this. If the carry flag is being used, this transformation isn't safe. This does prevent some test cases from using DEC now, but I'll try to look into that separately. Fixes PR35068. llvm-svn: 316860
-
Craig Topper authored
llvm-svn: 316859
-
Saleem Abdulrasool authored
AAPCS and AAPCS64 mandate that `wchar_t` with `-fno-short-wchar` is an `unsigned int` rather than a `signed int`. Ensure that the driver does not flip the signedness of `wchar_t` for those targets. Add additional tests to ensure that this does not regress. llvm-svn: 316858
-
Craig Topper authored
llvm-svn: 316857
-
Craig Topper authored
llvm-svn: 316856
-
Craig Topper authored
llvm-svn: 316855
-
Craig Topper authored
llvm-svn: 316854
-
Craig Topper authored
llvm-svn: 316853
-
Peter Szecsi authored
Added new enum in order to differentiate the warning messages on "misusing" into 3 categories: function calls, moving an object, copying an object. (At the moment the checker gives the same message in case of copying and moving.) Additional test cases added as well. Differential Revision: https://reviews.llvm.org/D38674 llvm-svn: 316852
-
Craig Topper authored
This code attempted to say that v8i16/v16i16 VSELECT is legal if BWI and VLX are enabled, but the only way we could reach this point is if the condition was not a vXi1 type. Which means it really wasn't legal. We don't have any tests that exercise this code. So I'm hoping it wasn't really reachable. llvm-svn: 316851
-
Peter Szecsi authored
[analyzer] MisusedMovedObjectChecker: Fix false positive on state-resetting, handling method calls on base-class sub-objects An earlier solution from Artem r315301 solves the reset problem, however, the reports should be handled the same way in case of method calls. We should not just report the base class of the object where the method was defined but the whole object. Fixed false positive which came from not removing the subobjects in case of a state-resetting function. (Just replaced the State->remove(...) call to removeFromState(..) which was defined exactly for that purpose.) Some minor typos fixed in this patch as well which did not worth a whole new patch in my opinion, so included them here. Differential Revision: https://reviews.llvm.org/D31538 llvm-svn: 316850
-
Rui Ueyama authored
This patch fixes ubsan's "shift exponent 64 is too large for 32-bit type 'int'" error. llvm-svn: 316849
-