[Attributor] Look through selects in genericValueTraversal
authorJohannes Doerfert <johannes@jdoerfert.de>
Thu, 6 May 2021 21:03:51 +0000 (16:03 -0500)
committerJohannes Doerfert <johannes@jdoerfert.de>
Sat, 10 Jul 2021 21:44:05 +0000 (16:44 -0500)
commitc1d53a316d6c7f7d80908ec8b5a65172f82e9721
tree157b803357ce1c3550fc4f5c5772ffc279ba0db7
parent5b05a5f6cee2ed3bda299d317907f8c89f4d089d
[Attributor] Look through selects in genericValueTraversal

If we can simplify the select condition we can avoid one value in the
traversal.

Differential Revision: https://reviews.llvm.org/D103861
llvm/lib/Transforms/IPO/AttributorAttributes.cpp
llvm/test/Transforms/Attributor/lvi-for-ashr.ll
llvm/test/Transforms/Attributor/value-simplify.ll