This is an archive of the discontinued LLVM Phabricator instance.

[mlir][spirv] Don't return value when cannot fold spirv.bitcast
ClosedPublic

Authored by antiagainst on Nov 7 2022, 4:06 PM.

Details

Summary

Returing a value would make the canonicalization infrastructure
think that folding succeeded so the pattern will be tried again
when invoked via, e.g., applyPatternsAndFoldGreedily and
eventually fail due to not converging after 10 times by default.

Diff Detail

Event Timeline

antiagainst created this revision.Nov 7 2022, 4:06 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 7 2022, 4:06 PM
antiagainst requested review of this revision.Nov 7 2022, 4:06 PM
hanchung accepted this revision.Nov 7 2022, 4:11 PM
This revision is now accepted and ready to land.Nov 7 2022, 4:11 PM
This revision was landed with ongoing or failed builds.Nov 7 2022, 4:14 PM
This revision was automatically updated to reflect the committed changes.