[LV] Replace unnecessary cast_or_null with cast (NFC).
authorFlorian Hahn <flo@fhahn.com>
Wed, 16 Nov 2022 22:31:58 +0000 (22:31 +0000)
committerFlorian Hahn <flo@fhahn.com>
Wed, 16 Nov 2022 22:31:59 +0000 (22:31 +0000)
commitbcc9c5d959b9cdfbb535ea298805c4993cf0bb64
treecbe9fbe6b431b9ec2441a1b821d3d0578158252e
parentb52d328ee8aab5afe15e701f269edb0da55f7f0c
[LV] Replace unnecessary cast_or_null with cast (NFC).

The existing code already unconditionally dereferences RepR, so
cast_or_null can be replaced by just cast.

Suggested by @Ayal during review of D136068, thanks!
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp