[LoopVersioningLICM] Remove unnecessary reset code (NFC)
authorNikita Popov <npopov@redhat.com>
Mon, 14 Nov 2022 14:16:38 +0000 (15:16 +0100)
committerNikita Popov <npopov@redhat.com>
Mon, 14 Nov 2022 14:18:26 +0000 (15:18 +0100)
commit47eddbbf33fe3b020e1fc4ef272461b8533238f8
tree8ab7e3302bf23e9e7253c02de70db3f265788748
parentc83c69dd0dcbabb93949b6e33bc57ff3a5592983
[LoopVersioningLICM] Remove unnecessary reset code (NFC)

The LoopVersioningLICM object is only ever used for a single loop,
but there was various unnecessary code for handling the case where
it is reused across loops. Drop that code, and pass the loop to the
constructor.
llvm/lib/Transforms/Scalar/LoopVersioningLICM.cpp