[VPlan] Remove unique_ptr from VPBranchOnRecipeMask (NFC).
authorFlorian Hahn <flo@fhahn.com>
Tue, 19 May 2020 13:03:18 +0000 (14:03 +0100)
committerFlorian Hahn <flo@fhahn.com>
Tue, 19 May 2020 14:01:37 +0000 (15:01 +0100)
commit66ad107452893517da93d25e58c16ba4669a00eb
tree4562d6e9547a7a3d5dcf813dda23eba1b7396290
parenta7759d178508771a5ccec2b02ca3f3bd40af4409
[VPlan] Remove unique_ptr from VPBranchOnRecipeMask (NFC).

We can remove a dynamic memory allocation, by checking the number of
operands: no operands = all true, 1 operand = mask.

Reviewers: Ayal, gilr, rengolin

Reviewed By: Ayal

Differential Revision: https://reviews.llvm.org/D80110
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/lib/Transforms/Vectorize/VPlan.h