[Attributor] Gracefully handle interprocedural reachability queries
authorJohannes Doerfert <johannes@jdoerfert.de>
Tue, 20 Jul 2021 05:30:20 +0000 (00:30 -0500)
committerJohannes Doerfert <johannes@jdoerfert.de>
Tue, 20 Jul 2021 05:35:14 +0000 (00:35 -0500)
commit49f2b41e6f9d5bea4d6803cc27bf667dd2bf4b63
tree2c1b87bdcef371b5c7433b297092e9c338d9a986
parentb96ea6b1fd260f09a246b9d168ea166bb7a199d1
[Attributor] Gracefully handle interprocedural reachability queries

This does ensure `InformationCache::getPotentiallyReachable` will not
crash/assert on instructions from different functions but simply return
that one is reachable, which is conservatively correct.
llvm/include/llvm/Transforms/IPO/Attributor.h