jit-ir: Add the rest to PropagateConstants.

Just for completeness.
This commit is contained in:
Unknown W. Brackets committed 2016-05-08 22:17:39 -07:00
1 parent 7ce923d01f
commit f638477b9a
1 file changed
+19
+19
View File
@@ -126,6 +126,9 @@ bool PropagateConstants(const IRWriter &in, IRWriter &out) {
case IROp::SetConst:
gpr.SetImm(inst.dest, constants[inst.src1]);
break;
case IROp::SetConstF:
case IROp::SetConstV:
goto doDefault;
case IROp::Sub:
case IROp::Slt:
@@ -381,6 +384,22 @@ bool PropagateConstants(const IRWriter &in, IRWriter &out) {
}
break;
case IROp::ZeroFpCond:
case IROp::FCmpUnordered:
case IROp::FCmpEqual:
case IROp::FCmpEqualUnordered:
case IROp::FCmpLessOrdered:
case IROp::FCmpLessUnordered:
case IROp::FCmpLessEqualOrdered:
case IROp::FCmpLessEqualUnordered:
gpr.MapDirty(IRREG_FPCOND);
goto doDefault;
case IROp::RestoreRoundingMode:
case IROp::ApplyRoundingMode:
case IROp::UpdateRoundingMode:
goto doDefault;
case IROp::VfpuCtrlToReg:
gpr.MapDirtyIn(inst.dest, IRREG_VPFU_CTRL_BASE + inst.src1);
goto doDefault;