This is an archive of the discontinued LLVM Phabricator instance.

[SPIR-V] Report modifying IR in SPIRVPrepareFunctions
ClosedPublic

Authored by mpaszkowski on Mar 1 2023, 2:30 PM.

Details

Summary

This change fixes "Pass modifies its input and doesn't report it" error when running SPIRVPrepareFunctions pass with LLVM_ENABLE_EXPENSIVE_CHECKS enabled.

Diff Detail

Event Timeline

mpaszkowski created this revision.Mar 1 2023, 2:30 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 1 2023, 2:30 PM
mpaszkowski requested review of this revision.Mar 1 2023, 2:30 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 1 2023, 2:30 PM
iliya-diyachkov added inline comments.Mar 2 2023, 1:31 PM
llvm/lib/Target/SPIRV/SPIRVPrepareFunctions.cpp
258–259

As we have already discussed, please delete this call.

mpaszkowski marked an inline comment as done.
iliya-diyachkov accepted this revision.Mar 7 2023, 11:19 AM

Thanks, Michal, it looks good to me.

This revision is now accepted and ready to land.Mar 7 2023, 11:19 AM
This revision was landed with ongoing or failed builds.Mar 9 2023, 10:23 AM
This revision was automatically updated to reflect the committed changes.