- Apr 27, 2016
-
-
Quentin Colombet authored
When the simple analysis provided by MachineBasicBlock::computeRegisterLiveness fails, fall back on the LivePhysReg utility. llvm-svn: 267623
-
Quentin Colombet authored
Thanks to that information we wouldn't lie on a register being live whereas it is not. llvm-svn: 267622
-
Quentin Colombet authored
Now, it is possible to know that partial definitions are dead definitions and recognize that clobbered registers are also dead. llvm-svn: 267621
-
Philip Reames authored
As pointed out by John Regehr over in http://reviews.llvm.org/D19485, LVI was being incredibly stupid about applying its transfer rules. Rather than gathering local facts from the expression itself, it was simply giving up entirely if one of the inputs was overdefined. This greatly impacts the precision of the overall analysis and makes it far more fragile as well. This patch builds on 267609 which did the same thing for unary casts. llvm-svn: 267620
-
Jingyue Wu authored
NVPTXLowerKernelArgs is required for correctness, so it should not be guarded by CodeGenOpt::None. NVPTXPeephole is optimization only, so it should be skipped when CodeGenOpt::None. llvm-svn: 267619
-
Philip Reames authored
Essentially, I was using the wrong size function. For types which were sized, but not primitive, I wasn't getting a useful size for the operand and failed an assert. I fixed this, and also added a guard that the input is a sized type. Test case is for the original mistake. I'm not sure how to actually exercise the sized type check. llvm-svn: 267618
-
Philip Reames authored
I'll clean this up and add a test case shortly. I want to make sure this does actually fix the bots; if not, I'll revert. llvm-svn: 267617
-
Adrian McCarthy authored
Use __attribute__((regparm(x))) to ensure the compiler enregisters at least some arguments when calling functions. Differential Revision: http://reviews.llvm.org/D19548 llvm-svn: 267616
-
Sanjay Patel authored
We need the default ratio to be sufficiently large that it triggers transforms based on block frequency info (BFI) and plays well with the recently introduced BranchProbability used by CGP. Differential Revision: http://reviews.llvm.org/D19435 llvm-svn: 267615
-
Justin Bogner authored
llvm-svn: 267614
-
Rafael Espindola authored
This lets Writer.cpp know that they are got relative, which will allow further simplifications. llvm-svn: 267613
-
Adrian Prantl authored
llvm-svn: 267612
-
Adrian Prantl authored
Follow-up to r267464. Thanks to Richard Smith for pointing this out! llvm-svn: 267611
-
Mike Aizatsky authored
Summary: On windows platform assert() call creates two distinct CFG edges which are coverage-instrumented. Simply calling assert would change coverage numbers on the platform. Subscribers: kubabrecka Differential Revision: http://reviews.llvm.org/D19514 llvm-svn: 267610
-
Philip Reames authored
As pointed out by John Regehr over in http://reviews.llvm.org/D19485, LVI was being incredibly stupid about applying its transfer rules. Rather than gathering local facts from the expression itself, it was simply giving up entirely if one of the inputs was overdefined. This greatly impacts the precision of the overall analysis and makes it far more fragile as well. This patch implements only the unary operation case. Once this is in, I'll implement the same for the binary operations. Differential Revision: http://reviews.llvm.org/D19492 llvm-svn: 267609
-
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
-