This is an archive of the discontinued LLVM Phabricator instance.

[CGP] Separate Select and Phi case in optimizeMemoryInst
AbandonedPublic

Authored by skatkov on Oct 4 2017, 3:15 AM.

Details

Reviewers
john.brawn
reames
Summary

This patch is a preparation for "Extends the scope of optimizeMemoryInst optimization".

It just a NFC to separate combining of Select and Phi nodes.

Diff Detail

Event Timeline

john.brawn added inline comments.Oct 6 2017, 3:09 AM
lib/CodeGen/CodeGenPrepare.cpp
4630

You could instead figure out if we have a select or phi by passing through Addr and checking its type. Or alternatively attach the select/phi to each ExtAddrMode that came from it (similar to what D38133 does with AddrModeUser) and examine the type of that.

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

No need for this restriction...