diff options
author | Bu Le <bule1@huawei.com> | 2021-03-17 13:15:56 +0300 |
---|---|---|
committer | Anton Afanasyev <anton.a.afanasyev@gmail.com> | 2021-03-17 13:51:08 +0300 |
commit | 9abe5004733034a17e79ef6b7e9b19000c4ea4be (patch) | |
tree | 0513b0d1a8ae3e8f50c4a1cd2eed6c24fd95f5a7 /clang/lib/Frontend/InitPreprocessor.cpp | |
parent | 4b513b2458d93a77ce6c45013ffc3e6838f4645f (diff) | |
download | llvm-9abe5004733034a17e79ef6b7e9b19000c4ea4be.zip llvm-9abe5004733034a17e79ef6b7e9b19000c4ea4be.tar.gz llvm-9abe5004733034a17e79ef6b7e9b19000c4ea4be.tar.bz2 |
[SLP] Fix the trunc instruction insertion problem
Current SLP pass has this piece of code that inserts a trunc instruction
after the vectorized instruction. In the case that the vectorized instruction
is a phi node and not the last phi node in the BB, the trunc instruction
will be inserted between two phi nodes, which will trigger verify problem
in debug version or unpredictable error in another pass.
This patch changes the algorithm to 'if the last vectorized instruction
is a phi, insert it after the last phi node in current BB' to fix this problem.
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions