[Attributor][NFC] Ignore benign uses in AAMemoryBehaviorFloating
authorJohannes Doerfert <johannes@jdoerfert.de>
Mon, 7 Sep 2020 22:55:05 +0000 (17:55 -0500)
committerJohannes Doerfert <johannes@jdoerfert.de>
Tue, 6 Oct 2020 14:32:18 +0000 (09:32 -0500)
commit957094e31b058f1b0a4bd3c76912f7d8b5b294b7
treeb1886cda169f9ee1c5fffe0b23dba9a0c7a15e1c
parent66e4f07198761bbb4dcd55235024c1081ed15c75
[Attributor][NFC] Ignore benign uses in AAMemoryBehaviorFloating

In AAMemoryBehaviorFloating we used to track benign uses in a SetVector.
With this change we look through benign uses eagerly to reduce the
number of elements (=Uses) we look at during an update.

The test does actually not fail prior to this commit but I already wrote
it so I kept it.
llvm/lib/Transforms/IPO/AttributorAttributes.cpp
llvm/test/Transforms/Attributor/readattrs.ll