This repository has been archived by the owner on Jan 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating LLVM patches names for easier maintenance
Change-Id: Ib1fe788e541b91e1cb880a729a52f0ad28dea84d
- Loading branch information
1 parent
3d82c83
commit 0871c14
Showing
17 changed files
with
275 additions
and
371 deletions.
There are no files selected for viewing
59 changes: 0 additions & 59 deletions
59
releases/4.0.0/patches_external/01-Adds-a-special-field-into-value-class.patch
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
releases/4.0.0/patches_external/04-stripPointerCastsAndOffsets-should-not.patch
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
releases/4.0.0/patches_external/1-stripPointerCastsAndOffsets-should-not.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Description : stripPointerCastsAndOffsets should not process across AddrSpaceCast | ||
|
||
diff -Naur --strip-trailing-cr a/lib/IR/Value.cpp b/lib/IR/Value.cpp | ||
--- a/lib/IR/Value.cpp 2016-12-07 13:47:32.000000000 -0800 | ||
+++ b/lib/IR/Value.cpp 2018-03-12 11:25:42.752625100 -0700 | ||
@@ -466,6 +466,11 @@ | ||
V = GEP->getPointerOperand(); | ||
} else if (Operator::getOpcode(V) == Instruction::BitCast || | ||
Operator::getOpcode(V) == Instruction::AddrSpaceCast) { | ||
+ // Do not process across AddrSpaceCast, since its result could | ||
+ // be a nullptr depending on the meaning of src and dest addrspace. | ||
+ if (Operator::getOpcode(V) == Instruction::AddrSpaceCast) { | ||
+ return V; | ||
+ } | ||
V = cast<Operator>(V)->getOperand(0); | ||
} else if (GlobalAlias *GA = dyn_cast<GlobalAlias>(V)) { | ||
if (StripKind == PSK_ZeroIndices || GA->isInterposable()) |
28 changes: 0 additions & 28 deletions
28
releases/4.0.0/patches_external/13-managed-static-mem-leak-fix.patch
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
releases/4.0.0/patches_external/2_1-enable-aggressive-combining.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Description : Enable aggressive (gep (gep base, idx0), idx1) combining | ||
|
||
diff -Naur --strip-trailing-cr a/lib/Transforms/InstCombine/InstructionCombining.cpp b/lib/Transforms/InstCombine/InstructionCombining.cpp | ||
--- a/lib/Transforms/InstCombine/InstructionCombining.cpp 2017-10-24 08:51:48.146973901 -0400 | ||
+++ b/lib/Transforms/InstCombine/InstructionCombining.cpp 2017-10-24 08:52:36.064972024 -0400 | ||
@@ -1573,11 +1573,13 @@ | ||
// normalized. | ||
if (SO1->getType() != GO1->getType()) | ||
return nullptr; | ||
+#if 0 | ||
// Only do the combine when GO1 and SO1 are both constants. Only in | ||
// this case, we are sure the cost after the merge is never more than | ||
// that before the merge. | ||
if (!isa<Constant>(GO1) || !isa<Constant>(SO1)) | ||
return nullptr; | ||
+#endif | ||
Sum = Builder->CreateAdd(SO1, GO1, PtrOp->getName()+".sum"); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 0 additions & 12 deletions
12
...henElseCodeToEnd-does-not-sink-code.patch → ...henElseCodeToEnd-does-not-sink-code.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 0 additions & 11 deletions
11
...-checks-in-SimplifyCFG-GVN-and-Earl.patch → ...-checks-in-SimplifyCFG-GVN-and-Earl.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
...atches_external/12-universal-driver.patch → ...tches_external/4_1-universal-driver.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
...-Reassoc-Contract-ApproxFunc-to-FMF.patch → ...-Reassoc-Contract-ApproxFunc-to-FMF.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.