projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1e2b23
)
Add a check to make sure we don't crash with strange configurations where we do fast...
author
Eli Friedman
<eli.friedman@gmail.com>
Thu, 9 Jun 2011 18:55:00 +0000
(18:55 +0000)
committer
Eli Friedman
<eli.friedman@gmail.com>
Thu, 9 Jun 2011 18:55:00 +0000
(18:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132789
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/X86/X86InstrInfo.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/X86/X86InstrInfo.cpp
b/lib/Target/X86/X86InstrInfo.cpp
index 18d71da47410193810d3fb17bb883dd051518da4..f98497f654b15f7c647aab821f5baf4abe526230 100644
(file)
--- a/
lib/Target/X86/X86InstrInfo.cpp
+++ b/
lib/Target/X86/X86InstrInfo.cpp
@@
-2392,6
+2392,10
@@
MachineInstr* X86InstrInfo::foldMemoryOperandImpl(MachineFunction &MF,
return 0;
}
+ // Conservatively fail out for loads without a memoperand.
+ if (LoadMI->memoperands_empty())
+ return 0;
+
// Determine the alignment of the load.
unsigned Alignment = 0;
if (LoadMI->hasOneMemOperand())