[PATCH] Allow for constant data to be referenced in Mips-fast-isel
reed kotler
rkotler at mips.com
Mon Dec 22 17:36:12 PST 2014
Hi dsanders,
This is a nearly trivial patch copied from AARCH64 but I did not previously have a test case for it.
http://reviews.llvm.org/D6767
Files:
lib/Target/Mips/MipsFastISel.cpp
Index: lib/Target/Mips/MipsFastISel.cpp
===================================================================
--- lib/Target/Mips/MipsFastISel.cpp
+++ lib/Target/Mips/MipsFastISel.cpp
@@ -397,8 +397,10 @@
Opcode = I->getOpcode();
U = I;
}
- } else if (isa<ConstantExpr>(Obj))
- return false;
+ } else if (const ConstantExpr *C = dyn_cast<ConstantExpr>(Obj)) {
+ Opcode = C->getOpcode();
+ U = C;
+ }
switch (Opcode) {
default:
break;
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6767.17581.patch
Type: text/x-patch
Size: 474 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141223/b3ebe1d1/attachment.bin>
More information about the llvm-commits
mailing list