[Attributor] Ensure to use the proper liveness AA
authorJohannes Doerfert <johannes@jdoerfert.de>
Thu, 19 May 2022 18:35:58 +0000 (13:35 -0500)
committerJohannes Doerfert <johannes@jdoerfert.de>
Thu, 9 Jun 2022 14:48:53 +0000 (16:48 +0200)
commita3273c0c06003b9e5f53a856844fee42a17e6b7b
tree6bcd808e0bac659ec017965100eed39b2fdc210c
parenta3fc8adb7e70df2ac82ae72fb7bb3d8f390cb5ec
[Attributor] Ensure to use the proper liveness AA

When determining liveness via Attributor::isAssumedDead(...) we might
end up without a liveness AA or with one pointing into another function.
Neither is helpful and we will avoid both from now on.
llvm/lib/Transforms/IPO/Attributor.cpp
llvm/test/Transforms/Attributor/IPConstantProp/return-constant.ll
llvm/test/Transforms/Attributor/IPConstantProp/return-constants.ll
llvm/test/Transforms/Attributor/align.ll
llvm/test/Transforms/Attributor/read_write_returned_arguments_scc.ll