This is an archive of the discontinued LLVM Phabricator instance.

[Polly] [VirtualInstruction] Avoid use of getStmtFor(BB). NFC.
ClosedPublic

Authored by nandini12396 on Aug 3 2017, 7:34 AM.

Details

Summary

With this patch, we get rid of the last use of getStmtFor(BB). Here this is done by getting the last statement of the incoming block in case the user is a phi node; otherwise just fetching the statement comprising the instruction for which the virtual use is being created.

Diff Detail

Repository
rL LLVM

Event Timeline

nandini12396 created this revision.Aug 3 2017, 7:34 AM
This revision is now accepted and ready to land.Aug 3 2017, 8:25 AM
This revision was automatically updated to reflect the committed changes.