[ConstantFold] Fix scalable shufflevector fold with all-undef mask
authorNikita Popov <npopov@redhat.com>
Fri, 11 Mar 2022 13:30:02 +0000 (14:30 +0100)
committerNikita Popov <npopov@redhat.com>
Fri, 11 Mar 2022 13:30:02 +0000 (14:30 +0100)
commit7781f61efa1823faadf73819785b8b8acd288914
treeeaed89d83a5936cf7d971c4eead595f8551e75cf
parent853beb55e14615ade795e18d218305c1dfdb5181
[ConstantFold] Fix scalable shufflevector fold with all-undef mask

If the input is scalable, we should not be returning a fixed-width
vector as a result.
llvm/lib/IR/ConstantFold.cpp
llvm/test/Transforms/InstCombine/shufflevec-constant.ll