- Mar 21, 2014
-
-
Tobias Grosser authored
llvm-svn: 204442
-
Tobias Grosser authored
llvm-svn: 204441
-
Alexander Potapenko authored
llvm-svn: 204440
-
Juergen Ributzka authored
Some targets require more than one relocation entry to perform a relocation. This change allows processRelocationRef to process more than one relocation entry at a time by passing the relocation iterator itself instead of just the relocation entry. Related to <rdar://problem/16199095> llvm-svn: 204439
-
Alexey Samsonov authored
llvm-svn: 204438
-
Kevin Qin authored
llvm-svn: 204437
-
Alexey Samsonov authored
llvm-svn: 204436
-
Juergen Ributzka authored
Extend the target hook to take also the operand index into account when calculating the cost of the constant materialization. Related to <rdar://problem/16381500> llvm-svn: 204435
-
Juergen Ributzka authored
Related to <rdar://problem/16381500> llvm-svn: 204434
-
Juergen Ributzka authored
Originally the algorithm would search for expensive constants and track their users, which could be instructions and constant expressions. This change only tracks the constants for instructions, but constant expressions are indirectly covered too. If an operand is an constant expression, then we look through the expression to find anny expensive constants. The algorithm keep now track of the instruction and the operand index where the constant is used. This allows more precise hoisting of constant materialization code for PHI instructions, because we only hoist to the basic block of the incoming operand. Before we had to find the idom of all PHI operands and hoist the materialization code there. This also makes updating of instructions easier. Before we had to keep track of the original constant, find it in the instructions, and then replace it. Now we can just simply update the operand. Related to <rdar://problem/16381500> llvm-svn: 204433
-
Juergen Ributzka authored
llvm-svn: 204432
-
Juergen Ributzka authored
[Constant Hoisting] Replace the MapVector with a separate Map and Vector to keep track of constant candidates. This simplifies working with the constant candidates and removes the tight coupling between the map and the vector. Related to <rdar://problem/16381500> llvm-svn: 204431
-
Ted Kremenek authored
llvm-svn: 204430
-
Saleem Abdulrasool authored
Add an assertion that the section is not NULL. Potential NULL pointer dereference identified by clang static analyzer. llvm-svn: 204429
-
Alexey Bataev authored
llvm-svn: 204428
-
Jiangning Liu authored
The commit r203762 introduced silent failure for complext SO expression, and it's even worse than compiler crash. llvm-svn: 204427
-
Argyrios Kyrtzidis authored
llvm-svn: 204426
-
Kevin Qin authored
llvm-svn: 204425
-
Kevin Qin authored
.data_region is only used in Darwin, so it shouldn't be generated for other OS. Currently AArch64 doesn't support darwin yet, so I removed it from AArch64. When Darwin is supported someday, we can add it back and associate it with Darwin. llvm-svn: 204424
-
Richard Smith authored
llvm-svn: 204423
-
Argyrios Kyrtzidis authored
[Support] Make sure sys::fs::remove can remove symbolic links and make sure LockFileManager can handle a symbolic link that points nowhere. llvm-svn: 204422
-
Rafael Espindola authored
llvm-svn: 204421
-
Rui Ueyama authored
Response file is not NUL terminated, so when creating a StringRef for the buffer contents, we need to pass the buffer size as well as the pointer pointing to the buffer. llvm-svn: 204420
-
Greg Fitzgerald authored
Change-Id: I30d340bbe6b2028cc0f831399b62521912dcac60 llvm-svn: 204419
-
Rui Ueyama authored
NumberOfRelocations field in COFF section table is only 16-bit wide. If an object has more than 65535 relocations, the number of relocations is stored to VirtualAddress field in the first relocation field, and a special flag (IMAGE_SCN_LNK_NRELOC_OVFL) is set to Characteristics field. In test we cheated a bit. I made up a test file so that it has IMAGE_SCN_LNK_NRELOC_OVFL flag but the number of relocations is much smaller than 65535. This is to avoid checking in a large test file just to test a file with many relocations. Differential Revision: http://llvm-reviews.chandlerc.com/D3139 llvm-svn: 204418
-
Richard Smith authored
at which that PCH imported each visible submodule of the module. Such locations are needed when synthesizing macro directives resulting from the import. llvm-svn: 204417
-
Rafael Espindola authored
llvm-svn: 204416
-
Duncan P. N. Exon Smith authored
Return 0 for success, non-0 for failure. llvm-svn: 204415
-
Duncan P. N. Exon Smith authored
Add logic to do a printf-style substitution of %p for the process pid in the filename. It's getting increasingly awkward to work on lib/profile without test infrastructure. This needs to be fixed! <rdar://problem/16383358> llvm-svn: 204414
-
Alexander Kornienko authored
llvm-svn: 204413
-
Rafael Espindola authored
llvm-svn: 204412
-
Weiming Zhao authored
Sicne MBB->computeRegisterLivenes() returns Dead for sub regs like s0, d0 is used in vpop instead of updating sp, which causes s0 dead before its use. This patch checks the liveness of each subreg to make sure the reg is actually dead. llvm-svn: 204411
-
Greg Fitzgerald authored
Patch by Ted Woodward llvm-svn: 204409
-
Duncan P. N. Exon Smith authored
Variables with available_externally linkage can be dropped at will. This causes link errors, since there are still references to the instrumentation! linkonce_odr is almost equivalent, so use that instead. As a drive-by fix (I don't have an Elf system, so I'm not sure how to write a testcase), use linkonce linkage for the instrumentation of extern_weak functions. <rdar://problem/15943240> llvm-svn: 204408
-
Duncan P. N. Exon Smith authored
The variable is used to set the linkage for variables, and will become different from function linkage in a follow-up commit. <rdar://problem/15943240> llvm-svn: 204407
-
Rafael Espindola authored
llvm-svn: 204406
-
Rafael Espindola authored
It was dead. llvm-svn: 204404
-
Richard Smith authored
resolved, emit an update record. llvm-svn: 204403
-
Greg Clayton authored
llvm-svn: 204402
-
Rafael Espindola authored
llvm-svn: 204401
-