[PATCH] D27174: [LiveRangeEdit] Handle instructions with no defs correctly.
Geoff Berry via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 29 11:41:39 PST 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL288189: [LiveRangeEdit] Handle instructions with no defs correctly. (authored by gberry).
Changed prior to commit:
https://reviews.llvm.org/D27174?vs=79432&id=79613#toc
Repository:
rL LLVM
https://reviews.llvm.org/D27174
Files:
llvm/trunk/lib/CodeGen/LiveRangeEdit.cpp
Index: llvm/trunk/lib/CodeGen/LiveRangeEdit.cpp
===================================================================
--- llvm/trunk/lib/CodeGen/LiveRangeEdit.cpp
+++ llvm/trunk/lib/CodeGen/LiveRangeEdit.cpp
@@ -272,7 +272,8 @@
bool ReadsPhysRegs = false;
bool isOrigDef = false;
unsigned Dest;
- if (VRM && MI->getOperand(0).isReg()) {
+ if (VRM && MI->getOperand(0).isReg() && MI->getOperand(0).isDef()) {
+ assert(MI->getDesc().getNumDefs() == 1);
Dest = MI->getOperand(0).getReg();
unsigned Original = VRM->getOriginal(Dest);
LiveInterval &OrigLI = LIS.getInterval(Original);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27174.79613.patch
Type: text/x-patch
Size: 607 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161129/b6c2e84a/attachment.bin>
More information about the llvm-commits
mailing list