There are cfgs which both of loop load pre and load pre can handle.
In this case, it could be better to perform loop load pre first because it can reduce the number of execution of load or it can help sccp pass propagate constant.
Differential D108204
[GVN] Execute performLoopLoadPRE ahead of PerformLoadPRE jaykang10 on Aug 17 2021, 6:05 AM. Authored by
Details There are cfgs which both of loop load pre and load pre can handle. In this case, it could be better to perform loop load pre first because it can reduce the number of execution of load or it can help sccp pass propagate constant.
Diff Detail Event TimelineComment Actions It looks like this may cause a regression where we fail to remove some dead code https://github.com/llvm/llvm-project/issues/53322 @jaykang10 it would be great if you could take a look |