File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -2779,14 +2779,17 @@ bool LdStCombine::runOnFunction(Function& F)
2779
2779
m_symEval.setDataLayout (m_DL);
2780
2780
2781
2781
// i64Emu: mimic Emu64Ops's enabling condition. Seems conservative
2782
- // but can be improved in the future if needed.
2782
+ // and be improved in the future if needed.
2783
2783
m_hasI64Emu = (m_CGC->platform .need64BitEmulation () &&
2784
2784
(IGC_GET_FLAG_VALUE (Enable64BitEmulation) ||
2785
2785
IGC_GET_FLAG_VALUE (Enable64BitEmulationOnSelectedPlatform)));
2786
2786
2787
2787
combineStores (F);
2788
2788
2789
2789
bool changed = (m_hasLoadCombined || m_hasStoreCombined);
2790
+
2791
+ clear ();
2792
+
2790
2793
return changed;
2791
2794
}
2792
2795
@@ -3934,8 +3937,6 @@ void LdStCombine::createCombinedStores(Function& F)
3934
3937
// Delete stores that have been combined.
3935
3938
eraseDeadInsts ();
3936
3939
3937
- m_hasStoreCombined = (!m_bundles.empty ());
3938
-
3939
3940
m_bundles.clear ();
3940
3941
}
3941
3942
You can’t perform that action at this time.
0 commit comments