[BitcodeReader] Delay select until all constants resolved
authorguopeilin <guopeilin1@huawei.com>
Sat, 11 Sep 2021 10:50:30 +0000 (18:50 +0800)
committerguopeilin <guopeilin1@huawei.com>
Sat, 11 Sep 2021 10:51:35 +0000 (18:51 +0800)
commit749ddd25e901c5214222be0e8e7be47424e5fdfe
treec05fdfcffe69df6aa79e86059dcd19abb9b3e564
parentdf975e459008504db1248414718c1b936685d16f
[BitcodeReader] Delay select until all constants resolved

Like the shuffle, we should treat the select delayed so that
all constants can be resolved.

Reviewed By: efriedma

Differential Revision: https://reviews.llvm.org/D109053
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
llvm/test/Bitcode/bitcode-parseconstant-delay-select.ll [new file with mode: 0644]