[CVP] Avoid duplicate range calculation (NFC)
authorNikita Popov <npopov@redhat.com>
Tue, 17 Jan 2023 15:53:59 +0000 (16:53 +0100)
committerNikita Popov <npopov@redhat.com>
Tue, 17 Jan 2023 15:54:51 +0000 (16:54 +0100)
commit61bb549cfd43fe4753fc78075b626ae18106fbeb
tree5c494ef9d40d6ac3c70ef8e8d4709147c0334069
parent1f2c37afbe69d048bc518363454ae073f588066e
[CVP] Avoid duplicate range calculation (NFC)

Calculate the range once for all the sdiv/srem transforms.
llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp