[PATCH] [RegAllocGreedy] Rematerialization crashes while updating operands in bundled MIs
Dmitri Shtilman
dshtilman at icloud.com
Wed May 20 22:49:10 PDT 2015
http://reviews.llvm.org/D9904
Files:
lib/CodeGen/InlineSpiller.cpp
Index: lib/CodeGen/InlineSpiller.cpp
===================================================================
--- lib/CodeGen/InlineSpiller.cpp
+++ lib/CodeGen/InlineSpiller.cpp
@@ -921,6 +921,7 @@
// Replace operands
for (unsigned i = 0, e = Ops.size(); i != e; ++i) {
+ MachineInstr *MI = Ops[i].first;
MachineOperand &MO = MI->getOperand(Ops[i].second);
if (MO.isReg() && MO.isUse() && MO.getReg() == VirtReg.reg) {
MO.setReg(NewVReg);
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9904.26204.patch
Type: text/x-patch
Size: 462 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150521/e36b6da5/attachment.bin>
More information about the llvm-commits
mailing list