[PATCH] D141018: llvm-reduce: Don't delete instructions in global variable reduction
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 4 16:14:34 PST 2023
arsenm created this revision.
arsenm added reviewers: regehr, aeubanks, lebedev.ri, dblaikie, diegotf.
Herald added a project: All.
arsenm requested review of this revision.
Herald added a subscriber: wdng.
Herald added a project: LLVM.
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.
https://reviews.llvm.org/D141018
Files:
llvm/test/tools/llvm-reduce/reduce-global-variable-terminator-user.ll
llvm/test/tools/llvm-reduce/remove-global-vars.ll
llvm/tools/llvm-reduce/deltas/ReduceGlobalVars.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141018.486424.patch
Type: text/x-patch
Size: 4806 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230105/0dad7745/attachment.bin>
More information about the llvm-commits
mailing list