[Attributor][FIX] Properly return changed if the IR was modified
authorJohannes Doerfert <johannes@jdoerfert.de>
Fri, 28 Aug 2020 01:34:07 +0000 (20:34 -0500)
committerJohannes Doerfert <johannes@jdoerfert.de>
Tue, 8 Sep 2020 04:38:08 +0000 (23:38 -0500)
commit79651265b2e08e105f3d66d5f75bc9f5fa803e45
treec4895f9ab82f5337d9263f526dc22b55a91ae3e4
parent247d02396524649a31bc45541f97457e32b8ef48
[Attributor][FIX] Properly return changed if the IR was modified

Deleting or replacing anything is certainly a modification. This caused
a later assertion in IPSCCP when compiling 400.perlbench with the new PM.
I'm not sure how to test this.
llvm/lib/Transforms/IPO/Attributor.cpp