[InstCombine] recognizeBSwapOrBitReverseIdiom - cleanup bswap/bitreverse detection...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 30 Sep 2020 13:11:43 +0000 (14:11 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 30 Sep 2020 13:19:18 +0000 (14:19 +0100)
commit621c6c89627972d52796e64a9476a7d05f22f2cd
tree991b3e9b1e42e3aef53aeeaa8d9779e827f8e2d7
parent3f88c10a6b25668bb99f5eee7867dcbf37df973c
[InstCombine] recognizeBSwapOrBitReverseIdiom - cleanup bswap/bitreverse detection loop. NFCI.

Early out if both pattern matches have failed (or we don't want them). Fix case of bit index iterator (and avoid Wshadow issue).
llvm/lib/Transforms/Utils/Local.cpp