[LoopVectorize] Preserve SCEV
authorNikita Popov <npopov@redhat.com>
Tue, 25 Apr 2023 10:20:52 +0000 (12:20 +0200)
committerNikita Popov <npopov@redhat.com>
Wed, 26 Apr 2023 07:43:54 +0000 (09:43 +0200)
commit1745341296495bf50203122cfcc3c4996871590c
treedf4d38da165f8dab6b089cfed7f85d81e0c74dd4
parent3185e47b5a8444e9fd70b746a7ad679dd131ffe4
[LoopVectorize] Preserve SCEV

As far as I can tell, LoopVectorize preserves SCEV, mainly by dint
of forgetting the loop being vectorized. We should mark it as
preserved in the pass manager.

This is a very small compile-time improvement.

Differential Revision: https://reviews.llvm.org/D149147
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/test/Transforms/LoopVectorize/novect-lcssa-cfg-invalidation.ll