- Apr 27, 2016
-
-
Andrew Kaylor authored
Differential Revision: http://reviews.llvm.org/D19439 llvm-svn: 267608
-
Ahmed Bougacha authored
Differential Revision: http://reviews.llvm.org/D17176 llvm-svn: 267606
-
David Majnemer authored
The destination buffer that sprintf uses is restrict qualified, we do not need to worry about derived pointers referenced via format specifiers. This reverts commit r267580. llvm-svn: 267605
-
Erik Pilkington authored
llvm-svn: 267604
-
Rafael Espindola authored
Every caller was doing it. llvm-svn: 267603
-
Rui Ueyama authored
llvm-svn: 267602
-
Nico Weber authored
r267556 made backslashes escape the next character unconditionally in rsp files. This test echos a path into a rsp file, and paths contain backslashes on Windows. Since it's not important for this test to get the filename from the rsp file, just pass it regularly. llvm-svn: 267601
-
Rui Ueyama authored
When --reproduce <path> is given, then we need to concatenate input file paths to the given path to save input files to the directory. Previously, path concatenation didn't handle Windows drive letters so it could generate invalid paths such as "C:\D:\foo". It also didn't handle ".." path components, so it could produce some bad paths such as "foo/../../etc/passwd". In this patch, Windows drive letters and ".." are removed before concatenating paths. Differential Revision: http://reviews.llvm.org/D19551 llvm-svn: 267600
-
Nico Weber authored
llvm-svn: 267599
-
Zachary Turner authored
llvm-svn: 267598
-
Elena Demikhovsky authored
Fixed a bug in loop vectorization with conditional store. Differential Revision: http://reviews.llvm.org/D19532 llvm-svn: 267597
-
Justin Bogner authored
llvm-svn: 267596
-
Zachary Turner authored
llvm-svn: 267595
-
Jim Ingham authored
but when there's was no process it was just returning an null pointer and not setting the error. I don't have a scenario where this might go wrong, just code inspection... llvm-svn: 267594
-
Andrew Kaylor authored
Differential Revision: http://reviews.llvm.org/D19509 llvm-svn: 267593
-
Alexander Kornienko authored
+ brushed the code a bit and renamed the test file to match the check name llvm-svn: 267592
-
Marshall Clow authored
Apparently XFAIL tests that are supposed to fail to compile can be problematic. They still get compiled, and if the compile succeeds, the buildbots complain. Replace the XFAIL with #error. llvm-svn: 267591
-
Yaxun Liu authored
OpenCL spec requires __OPENCL_C_VERSION__ to be defined based on -cl-std option. This patch implements that. The patch also defines __FAST_RELAXED_MATH__ based on -cl-fast-relaxed-math option. Also fixed a test using -std=c99 for OpenCL program. Limit allowed language standard of OpenCL to be OpenCL standards. Differential Revision: http://reviews.llvm.org/D19071 llvm-svn: 267590
-
Zachary Turner authored
llvm-svn: 267589
-
Rui Ueyama authored
Previously, the test didn't work on Windows because it tried to concatenate two (possibly) absolute paths. If two paths are absolute paths that have drive letters, then the result would become something like C:\foo\D:\bar. That's not a valid path. I changed the test to use relative paths. llvm-svn: 267588
-
Alexander Kornienko authored
llvm-svn: 267587
-
Marcin Koscielnicki authored
Differential Revision: http://reviews.llvm.org/D19542 llvm-svn: 267586
-
Zachary Turner authored
The DBI stream contains a lot of bookkeeping information for other streams. In particular it contains information about section contributions and linked modules. This patch is a first attempt at parsing some of the information out of the DBI stream. It currently only parses and dumps the headers of the DBI stream, so none of the module data or section contribution data is pulled out. This is just a proof of concept that we understand the basic properties of the DBI stream's metadata, and followup patches will try to extract more detailed information out. Differential Revision: http://reviews.llvm.org/D19500 Reviewed By: majnemer, ruiu llvm-svn: 267585
-
Chris Bieneman authored
The Apple stage2 build should include compiler-rt iOS libraries and be built with the stage2 compiler. This matches Apple's production clang builds. llvm-svn: 267584
-
Krzysztof Parzyszek authored
When a block is tail-duplicated, the PHI nodes from that block are replaced with appropriate COPY instructions. When those PHI nodes contained use operands with subregisters, the subregisters were dropped from the COPY instructions, resulting in incorrect code. Keep track of the subregister information and use this information when remapping instructions from the duplicated block. Differential Revision: http://reviews.llvm.org/D19337 llvm-svn: 267583
-
Tim Northover authored
A latent bug in llvm-objdump used the wrong format specifier on 32-bit targets, causing the test to fail. This fixes the issue. llvm-svn: 267582
-
Justin Bogner authored
Match the style here to the other headers in Transforms/IPO. llvm-svn: 267581
-
David Majnemer authored
sprintf doesn't read or copy the terminating null byte from it's string operands. sprintf will append it's own after processing all of the format specifiers. This fixes PR27526. llvm-svn: 267580
-
Manman Ren authored
We don't need to copy the sret argument into %rax upon return. rdar://25671494 llvm-svn: 267579
-
Saleem Abdulrasool authored
The Machine Instruction Verifier flagged some issues in the serialized MIR. Adjust the input to correct them. Fixes the remaining portion of PR27480. llvm-svn: 267578
-
Saleem Abdulrasool authored
Kill bleeding whitespace. NFC llvm-svn: 267577
-
Eugene Zelenko authored
Highlighting consistency in Clang-tidy misc-fold-init-type check documentation. llvm-svn: 267576
-
Chris Bieneman authored
This change modifies find_darwin_sdk_dir to set a variable if a Darwin "Internal" SDK is present which allows CMake to disable components that require internal-only APIs. This mechanism is then used to disable TSan when an internal SDK is not present. llvm-svn: 267575
-
Etienne Bergeron authored
Summary: This checker finds redundant expression on both side of a binary operator. The current implementation provide a function to check whether expressions are equivalent. This implementation is able to recognize the common subset encounter in C++ program. Side-effects like "x++" are not considered to be equivalent. There are many False Positives related to macros and to floating point computations (detecting NaN). The checker is ignoring these cases. Example: ``` if( !dst || dst->depth != desired_depth || dst->nChannels != desired_num_channels || dst_size.width != src_size.width || dst_size.height != dst_size.height ) <<--- bug { ``` Reviewers: alexfh Subscribers: danielmarjamaki, fahlgren, jordan_rose, zaks.anna, Eugene.Zelenko, cfe-commits Differential Revision: http://reviews.llvm.org/D19451 llvm-svn: 267574 -
Konstantin Zhuravlyov authored
[AMDGPU] Move reserved vgpr count for trap handler usage to SIMachineFunctionInfo + minor commenting changes Differential Revision: http://reviews.llvm.org/D19537 llvm-svn: 267573
-
Sanjay Patel authored
This is part of solving PR27344: https://llvm.org/bugs/show_bug.cgi?id=27344 CGP should undo the SimplifyCFG transform for the same reason that earlier patches have used this same mechanism: it's possible that passes between SimplifyCFG and CGP may be able to optimize the IR further with a select in place. For the TLI hook default, >99% taken or not taken is chosen as the default threshold for a highly predictable branch. Even the most limited HW branch predictors will be correct on this branch almost all the time, so even a massive mispredict penalty perf loss would be overcome by the win from all the times the branch was predicted correctly. As a follow-up, we could make the default target hook less conservative by using the SchedMachineModel's MispredictPenalty. Or we could just let targets override the default by implementing the hook with that and other target-specific options. Note that trying to statically determine mispredict rates for close-to-balanced profile weight data is generally impossible if the HW is sufficiently advanced. Ie, 50/50 taken/not-taken might still be 100% predictable. Finally, note that this patch as-is will not solve PR27344 because the current __builtin_unpredictable() branch weight default values are 4 and 64. A proposal to change that is in D19435. Differential Revision: http://reviews.llvm.org/D19488 llvm-svn: 267572
-
Zachary Turner authored
llvm-svn: 267571
-
Etienne Bergeron authored
Summary: The checker was noisy when running over llvm code base. This patch is impriving the way string-compare functions are matched. 1) By default, do not report !strcmp(...) unless it's activate by the user, 2) Only match suspicious expression over a subset of expression (binary operator), 3) Added matching of macro wrapper used with clang on linux. See bug: 27465. Reviewers: alexfh Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D19497 llvm-svn: 267570
-
Peter Collingbourne authored
llvm-svn: 267569
-
Rafael Espindola authored
We were only doing it for .so and --export-dynamic, but those are not the only ways a symbol ends up in the dynamic symbol table. Problem diagnostic and earlier patch version by Peter Collingbourne. llvm-svn: 267568
-