- Apr 20, 2017
-
-
Kostya Serebryany authored
llvm-svn: 300775
-
Craig Topper authored
[APInt] Cast more calls to add/sub/mul overflow functions to void. I missed the unittests in r300758. llvm-svn: 300773
-
Sanjay Patel authored
I've changed one of the tests to not fold away, but we didn't and still don't do the transform that the comment claims we do (and I don't know why we'd want to do that). Follow-up to: https://reviews.llvm.org/rL300725 https://reviews.llvm.org/rL300763 llvm-svn: 300772
-
Eric Fiselier authored
llvm-svn: 300770
-
Kostya Serebryany authored
llvm-svn: 300769
-
Kostya Serebryany authored
llvm-svn: 300768
-
Kostya Serebryany authored
llvm-svn: 300767
-
Kostya Serebryany authored
llvm-svn: 300766
-
Francis Ricci authored
llvm-svn: 300765
-
Erich Keane authored
The original idea was that if the attribute on an operator, that the return-value unused-ness wouldn't matter. However, all of the operators except postfix inc/dec return references! References don't result in this warning anyway, so those are already excluded. Differential Revision: https://reviews.llvm.org/D32207 llvm-svn: 300764
-
Sanjay Patel authored
This allows forming more 'not' ops, so we get improvements for ISAs that have and-not. Follow-up to: https://reviews.llvm.org/rL300725 llvm-svn: 300763
-
Richard Smith authored
llvm-svn: 300762
-
Matthias Braun authored
Re-commit after revert in r300668. Changed getMaxFPOffset() to a more conservative heuristic instead of trying to be clever and missing for some exotic calling conventions. We need to reserve an emergency spill slot in cases with large argument types that could overflow immediate offsets for FP relative address calculations. rdar://31317893 Differential Revision: https://reviews.llvm.org/D31643 llvm-svn: 300761
-
Francis Ricci authored
Summary: In the general case, we only need to check for root regions inside the memory map returned by procmaps. However, on Darwin, we also need to check inside mmap'd regions, which aren't returned in the list of modules we get from procmaps. This patch refactors memory region scanning on darwin to reduce code duplication with the kernel alloc once page scan. Reviewers: kubamracek, alekseyshl Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D32190 llvm-svn: 300760
-
Francis Ricci authored
Reviewers: kubamracek, alekseyshl Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D32189 llvm-svn: 300759
-
Craig Topper authored
[APInt] Cast calls to add/sub/mul overflow methods to void if only their overflow bool out param is used. This is preparation for a clang change to improve the [[nodiscard]] warning to not be ignored on methods that return a class marked [[nodiscard]] that are defined in the class itself. See D32207. We should consider adding wrapper methods to APInt that return the overflow flag directly and discard the APInt result. This would eliminate the void casts and the need to create a bool before the call to pass to the out param. llvm-svn: 300758
-
Simon Pilgrim authored
llvm-svn: 300757
-
Craig Topper authored
[CodeGen] Use preincrement version of APInt::operator++ instead of postincrement to avoid creating and immediately discarding a temporary APInt. This is preparation for a clang change to improve the [[nodiscard]] warning to not be ignored on methods that return a class marked [[nodiscard]] that are defined in the class itself. See D32207. llvm-svn: 300756
-
Kostya Serebryany authored
Summary: For some reason, the asan bot has recently started reporting this leak even though it existed for ages. Reviewers: pcc Reviewed By: pcc Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D32243 llvm-svn: 300755
-
Matt Arsenault authored
Promote them to i32 vectors to avoid unpacking and re-packing the vectors. llvm-svn: 300754
-
-
Eli Friedman authored
Move the BFI logic to computeKnownBitsForTargetNode, and delete the redundant CMOV logic. This is intended as a cleanup, but it's probably possible to construct a case where moving the BFI logic allows more combines. Differential Revision: https://reviews.llvm.org/D31795 llvm-svn: 300752
-
Aditya Nandakumar authored
NFCI llvm-svn: 300751
-
Simon Pilgrim authored
llvm-svn: 300750
-
Eli Friedman authored
Differential Revision: https://reviews.llvm.org/D32103 llvm-svn: 300749
-
Alex Shlyapnikov authored
Summary: On PowerPC and ARM (possibly, need to verify), couple tests involving pthread_exit fail due to leaks detected by LSan. pthread_exit tries to perform unwinding that leads to dlopen'ing libgcc_s.so. dlopen mallocs "libgcc_s.so" string which confuses LSan, it fails to realize that this allocation happens in dynamic linker and should be ignored. Symbolized leak report is required to define a suppression for this known problem. Reviewers: eugenis Subscribers: aemerson, rengolin, kubamracek, llvm-commits Differential Revision: https://reviews.llvm.org/D32194 Turn symbolization on for PPC and Thumb only to do not slow down other platforms. llvm-svn: 300748
-
Craig Topper authored
llvm-svn: 300747
-
Eli Friedman authored
Use haveNoCommonBitsSet to figure out whether an "or" instruction is equivalent to addition. This handles more cases than just checking for a constant on the RHS. Differential Revision: https://reviews.llvm.org/D32239 llvm-svn: 300746
-
Kostya Serebryany authored
llvm-svn: 300745
-
Kostya Serebryany authored
llvm-svn: 300744
-
Shoaib Meenai authored
_LIBCPP_ABI_MICROSOFT is more appropriate to use here, since the conditionals are controlling Microsoft mangling. It wasn't used originally since it didn't exist at the time. llvm-svn: 300743
-
Dehao Chen authored
Summary: In the current implementation, to find inline stack for an address incurs expensive linear search in 2 places: * linear search for the top-level DIE * recursive linear traverse the DIE tree to find the path to the leaf DIE In this patch, a map is built from address to its corresponding leaf DIE. The inline stack is built by traversing from the leaf DIE up to the root DIE. This speeds up batch symbolization by ~10X without noticible memory overhead. Reviewers: dblaikie Reviewed By: dblaikie Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D32177 llvm-svn: 300742
-
David Blaikie authored
llvm-svn: 300741
-
Dehao Chen authored
llvm-svn: 300740
-
Kostya Serebryany authored
llvm-svn: 300738
-
Dehao Chen authored
Summary: PMADDWD can only handle signed short. Reviewers: mkuper, wmi Reviewed By: mkuper Subscribers: andreadb, llvm-commits Differential Revision: https://reviews.llvm.org/D32236 llvm-svn: 300737
-
Matt Arsenault authored
This is inserted directly in the text section. The relocation for the function ends up resolving to the beginning of the amd_kernel_code_t header rather than the actual function entry point. Also skip some of the comments for initialization that only makes sense for kernels. llvm-svn: 300736
-
Aditya Nandakumar authored
Patch by Ettore Speziale Allow TableGen to generate static functions to perform GCC/MS builtin name to target specific intrinsic ID mapping. https://reviews.llvm.org/D31150 llvm-svn: 300735
-
Artem Tamazov authored
Added approx. 1100 gfx7 and 1040 gfx8 test cases. llvm-svn: 300734
-
Jim Ingham authored
From Gregor Milos (gmilos@apple.com), for: https://reviews.llvm.org/D32078 llvm-svn: 300733
-