This is an archive of the discontinued LLVM Phabricator instance.

llvm-reduce: Don't delete instructions in global variable reduction
ClosedPublic

Authored by arsenm on Jan 4 2023, 4:14 PM.

Details

Summary

For some reason the global variable reduction was trying to delete
use instructions. This broke the verifier if the user was a terminator,
since the block now no longer has one. It doesn't make sense for this
reduction to delete the users, so just stop doing that.

Diff Detail

Event Timeline

arsenm created this revision.Jan 4 2023, 4:14 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 4 2023, 4:14 PM
arsenm requested review of this revision.Jan 4 2023, 4:14 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 4 2023, 4:14 PM
Herald added a subscriber: wdng. · View Herald Transcript
regehr accepted this revision.Jan 4 2023, 4:29 PM

LGTM. I agree this is a good change, delta passes shouldn't try to be too clever.

This revision is now accepted and ready to land.Jan 4 2023, 4:29 PM