[LoopPredication][NFCI] Perform 'visited' check before pushing to worklist
authorMax Kazantsev <mkazantsev@azul.com>
Wed, 2 Nov 2022 11:02:59 +0000 (18:02 +0700)
committerMax Kazantsev <mkazantsev@azul.com>
Wed, 2 Nov 2022 11:04:23 +0000 (18:04 +0700)
commit2baabd2c19ee972926a96fa01838ccb7901cac32
treea1384816a36f06469058866346756bb26a562ead
parenta68bcd81dcc90fc7d6fbe4013569774a19097c4a
[LoopPredication][NFCI] Perform 'visited' check before pushing to worklist

This prevents duplicates to be pushed into the stack and hypothetically
should reduce memory footprint on ugly cornercases with multiple repeating
duplicates in 'and' tree.
llvm/lib/Transforms/Scalar/LoopPredication.cpp