[LV] Extend dead instruction detection to multiple exiting blocks
authorPhilip Reames <listmail@philipreames.com>
Wed, 16 Dec 2020 02:46:32 +0000 (18:46 -0800)
committerPhilip Reames <listmail@philipreames.com>
Wed, 16 Dec 2020 02:46:32 +0000 (18:46 -0800)
commitaf7ef895d4951cd41c5e055c84469b4fd229d50c
tree0dcbf180d308dbd5c25254d483b740cfdd264745
parentc415e709e9926b4aed897b55931f319a5f512e85
[LV] Extend dead instruction detection to multiple exiting blocks

Given we haven't yet enabled multiple exiting blocks, this is currently non functional, but it's an obvious extension which cleans up a later patch.

I don't think this is worth review (as it's pretty obvious), if anyone disagrees, feel feel to revert or comment and I will.
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp