This is an archive of the discontinued LLVM Phabricator instance.

[InferAddressSpaces] Fix assert on invalid bitcast placement
ClosedPublic

Authored by kerbowa on Apr 1 2022, 11:13 PM.

Details

Summary

Similar to the problem in 0bb25b4603, bitcasts that are inserted must
dominate all uses. When rewriting "values" with "new values" that have
the updated address space, we may replace the "new value" with a bitcast
if one of the original users is an addresspace cast. This bitcast must
be inserted before ALL users, not only before the addresspace cast.

Diff Detail

Event Timeline

kerbowa created this revision.Apr 1 2022, 11:13 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 1 2022, 11:13 PM
kerbowa requested review of this revision.Apr 1 2022, 11:13 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 1 2022, 11:13 PM
arsenm accepted this revision.Apr 5 2022, 6:10 PM
This revision is now accepted and ready to land.Apr 5 2022, 6:10 PM
This revision was landed with ongoing or failed builds.Apr 7 2022, 8:12 PM
This revision was automatically updated to reflect the committed changes.