This is an archive of the discontinued LLVM Phabricator instance.

[AggressiveInstCombine] Avoid load merge/widen if stores are present b/w loads
ClosedPublic

Authored by bipmis on Nov 3 2022, 5:47 AM.

Details

Summary

This patch is to address the test cases in which the load has to be inserted at a right point. This happens when there is a store b/w the loads.

This patch reverts the loads merge in all cases when stores are present b/w loads and will eventually be replaced with proper fix and test cases in https://reviews.llvm.org/D137201

Diff Detail

Event Timeline

bipmis requested review of this revision.Nov 3 2022, 5:47 AM
bipmis created this revision.
bipmis edited the summary of this revision. (Show Details)
dmgreen accepted this revision.Nov 3 2022, 5:54 AM

Sounds sensible to me in the short term. LGTM.

You could add a TODO comment about working on reenabling it with AA once we've worked through all the edgecases.

llvm/lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp
732–733

Perhaps add a TODO or reword this comment.

This revision is now accepted and ready to land.Nov 3 2022, 5:54 AM