The IFN_GOMP_SIMD_LANE code in vectorizable_call is essentially a duplicate of the code in vectorizable_live_operation. They both replace all uses outside the loop with the constant VF - 1.
Note that my patch to vectorize inductions that are live after the loop will also remove the IFN_GOMP_SIMD_LANE code in vectorizable_live_operation. This patch is required in order for the follow on optimisation (No need to Vectorise simple only-live stmts) to work. Tested with libgomp on x86 and aarch64 gcc/ * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code. Alan.
duplicatedGOMP.patch
Description: Binary data