[llvm-commits] [llvm] r132826 - /llvm/trunk/lib/Target/X86/X86InstrInfo.cpp
Eli Friedman
eli.friedman at gmail.com
Thu Jun 9 18:13:01 PDT 2011
Author: efriedma
Date: Thu Jun 9 20:13:01 2011
New Revision: 132826
URL: http://llvm.org/viewvc/llvm-project?rev=132826&view=rev
Log:
PR10092 (second try): Don't crash on a load without a momoperand; fast-isel creates loads like this.
Modified:
llvm/trunk/lib/Target/X86/X86InstrInfo.cpp
Modified: llvm/trunk/lib/Target/X86/X86InstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86InstrInfo.cpp?rev=132826&r1=132825&r2=132826&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86InstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86InstrInfo.cpp Thu Jun 9 20:13:01 2011
@@ -2420,7 +2420,7 @@
Alignment = 4;
break;
default:
- llvm_unreachable("Don't know how to fold this instruction!");
+ return 0;
}
if (Ops.size() == 2 && Ops[0] == 0 && Ops[1] == 1) {
unsigned NewOpc = 0;
More information about the llvm-commits
mailing list