[SLP] "Normal" instructions should not go between PHI and Lading pad
authorEvgeniy Brevnov <ybrevnov@azul.com>
Fri, 25 Feb 2022 11:09:07 +0000 (18:09 +0700)
committerEvgeniy Brevnov <ybrevnov@azul.com>
Sat, 26 Feb 2022 04:44:26 +0000 (11:44 +0700)
commit10e99eb7e4adbb8e2407e2f6ae3d2e6420d060c9
treeec417903b869480f9e0ab6bc42d5689d4fc68921
parent71c4b8dfe1dd7c20242d303cd33cc022b7af9331
[SLP] "Normal" instructions should not go between PHI and Lading pad

Currently, SLP can insert "shuffle" instruction beween PHI and Landing pad instruction. The problem is demonstrated by LIT test. The solution is to adjust insertion point once we are done with PHI generation.

Differential Revision: https://reviews.llvm.org/D120552
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
llvm/test/Transforms/SLPVectorizer/X86/landing_pad.ll [new file with mode: 0644]