Skip to content
Snippets Groups Projects
Commit c454d72d authored by clc5q's avatar clc5q
Browse files

Solve Raytheon crash by eliminating old USEs after stack address normalization.

Former-commit-id: 456b095e76fd0ea3cdfbba43b6eafa991e7125b5
parent 567059e0
No related branches found
No related tags found
No related merge requests found
......@@ -4718,12 +4718,16 @@ bool SMPInstr::MDNormalizeStackOps(bool UseFP, STARS_sval_t FPDelta, bool Recomp
// Now go through the USE worklist and change stack operands to normalized stack operands.
for (WorkIter = UseWorkList.begin(); WorkIter != UseWorkList.end(); ++WorkIter) {
UseIter = WorkIter->first;
#if 0
if (!Recomputing) { // Just replace UseOp at UseIter with normalized op if not recomputing
UseIter = this->Uses.SetOp(UseIter, WorkIter->second);
}
else { // Keep both old and new forms of UseOp in the Use set if recomputing
this->AddUse(WorkIter->second, UseIter->GetType(), UseIter->GetSSANum());
}
#else
UseIter = this->Uses.SetOp(UseIter, WorkIter->second);
#endif
}
// Normalize STARSOpndTypePtr private data member USEs.
if (Recomputing) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment