OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d02a13
)
[lanai] Exit early in Mem Alu combiner if sentinel reach.
author
Jacques Pienaar
<jpienaar@google.com>
Tue, 23 Aug 2016 01:04:41 +0000
(
01:04
+0000)
committer
Jacques Pienaar
<jpienaar@google.com>
Tue, 23 Aug 2016 01:04:41 +0000
(
01:04
+0000)
LanaiMemAluCombiner could try to query the debug value of a list sentinel. Add check to exit early instead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@279497
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/Lanai/LanaiMemAluCombiner.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/Lanai/LanaiMemAluCombiner.cpp
b/lib/Target/Lanai/LanaiMemAluCombiner.cpp
index
c5a4614
..
64e784b
100644
(file)
--- a/
lib/Target/Lanai/LanaiMemAluCombiner.cpp
+++ b/
lib/Target/Lanai/LanaiMemAluCombiner.cpp
@@
-339,6
+339,9
@@
MbbIterator LanaiMemAluCombiner::findClosestSuitableAluInstr(
while (First != Last) {
Decrement ? --First : ++First;
+ if (First == Last)
+ break;
+
// Skip over debug instructions
if (First->isDebugValue())
continue;