This is an archive of the discontinued LLVM Phabricator instance.

[DSE] Remove a redundant call to getLocForWriteEx()
ClosedPublic

Authored by gparker42 on Nov 28 2020, 3:56 AM.

Details

Summary

eliminateDeadStoresMemorySSA() makes two identical calls to getLocForWriteEx(). Remove one of them.

Diff Detail

Event Timeline

gparker42 created this revision.Nov 28 2020, 3:56 AM
gparker42 requested review of this revision.Nov 28 2020, 3:56 AM

I tried formatting this initialization as a ternary expression but it was awful.

fhahn accepted this revision.Nov 28 2020, 4:38 AM

LGTM, thanks!

This revision is now accepted and ready to land.Nov 28 2020, 4:38 AM
This revision was automatically updated to reflect the committed changes.