This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Fix missing check on nested op values in LICM
ClosedPublic

Authored by nicolasvasilache on Jan 5 2022, 5:22 AM.

Details

Summary

LICM checks that nested ops depend only on values defined outside
before performing hoisting.
However, it specifically omits to check for terminators which can
lead to SSA violations.
This revision fixes the incorrect behavior.

Diff Detail

Event Timeline

nicolasvasilache requested review of this revision.Jan 5 2022, 5:22 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 5 2022, 5:22 AM
herhut accepted this revision.Jan 5 2022, 5:52 AM

Great find. Thanks for the fix.

This revision is now accepted and ready to land.Jan 5 2022, 5:52 AM