This is an archive of the discontinued LLVM Phabricator instance.

[CGP]Restrict complex select/phi case for optimizeMemoryInst
AbandonedPublic

Authored by skatkov on Oct 4 2017, 2:20 AM.

Details

Reviewers
john.brawn
reames
Summary

This patch is actually a preparation for extension of the scope of optimizeMemoryInst optimization.
For now it does nothing but disable in future implementation the complex cases like
Select of Phi/Select or Phi from Select.

Diff Detail

Event Timeline

john.brawn edited edge metadata.Oct 6 2017, 2:54 AM

There's no fundamental reason why a mixture of phi and select can't be handled, but this patch probably makes more sense in the context of later patches. I'll hold off reviewing it until then.

There's no fundamental reason why a mixture of phi and select can't be handled, but this patch probably makes more sense in the context of later patches. I'll hold off reviewing it until then.

I tend to agree with you, right now I'm re-writing my main patch to support both Select and Phi at the same time. It seems it works. Most probably I will upload a first version of the patch tomorrow.

skatkov abandoned this revision.Oct 10 2017, 4:34 AM

No need for this patch. It is covered by D36073