summaryrefslogtreecommitdiff
path: root/src/jit/instr.cpp
diff options
context:
space:
mode:
authorBrian Sullivan <briansul@microsoft.com>2017-10-19 11:14:58 -0700
committerGitHub <noreply@github.com>2017-10-19 11:14:58 -0700
commitfbeb7be2b39ec562d190b726e9974d48d00d84cb (patch)
treea92189fc1fc119360f0b73e03e1f838ba239a791 /src/jit/instr.cpp
parent4981c3af46806db830c3d69851794b96adb8912c (diff)
parent99e6a6b20c57038472b99ffd107c12dc08aa4e09 (diff)
downloadcoreclr-fbeb7be2b39ec562d190b726e9974d48d00d84cb.tar.gz
coreclr-fbeb7be2b39ec562d190b726e9974d48d00d84cb.tar.bz2
coreclr-fbeb7be2b39ec562d190b726e9974d48d00d84cb.zip
Merge pull request #14582 from briansull/cleanup-iconhdl
Cleanup IconHandle nodes
Diffstat (limited to 'src/jit/instr.cpp')
-rw-r--r--src/jit/instr.cpp24
1 files changed, 3 insertions, 21 deletions
diff --git a/src/jit/instr.cpp b/src/jit/instr.cpp
index c5040ea735..55673024cd 100644
--- a/src/jit/instr.cpp
+++ b/src/jit/instr.cpp
@@ -1214,35 +1214,17 @@ void CodeGen::sched_AM(instruction ins,
assert(baseReg != REG_NA);
reg = baseReg;
-#ifdef LATE_DISASM
- /*
- Keep in mind that non-static data members (GT_FIELD nodes) were
- transformed into GT_IND nodes - we keep the CLS/CPX information
- in the GT_CNS_INT node representing the field offset of the
- class member
- */
-
- if (addr->gtOper != GT_LEA && (addr->gtOp.gtOp2->gtOper == GT_CNS_INT) &&
- addr->gtOp.gtOp2->IsIconHandle(GTF_ICON_FIELD_HDL))
- {
- /* This is a field offset - set the CPX/CLS values to emit a fixup */
-
- cpx = addr->gtOp.gtOp2->gtIntCon.gtIconFld.gtIconCPX;
- cls = addr->gtOp.gtOp2->gtIntCon.gtIconFld.gtIconCls;
- }
-#endif
-
if (cons)
{
- getEmitter()->emitIns_I_AR(ins, size, imm, reg, offs, cpx, cls);
+ getEmitter()->emitIns_I_AR(ins, size, imm, reg, offs);
}
else if (rdst)
{
- getEmitter()->emitIns_R_AR(ins, size, ireg, reg, offs, cpx, cls);
+ getEmitter()->emitIns_R_AR(ins, size, ireg, reg, offs);
}
else
{
- getEmitter()->emitIns_AR_R(ins, size, ireg, reg, offs, cpx, cls);
+ getEmitter()->emitIns_AR_R(ins, size, ireg, reg, offs);
}
}
}