[NFC] Reserve the number of operands before push_back (#106234)
commitef5ba2ede79f759ff8eaad222dca36aa5f1871c3
authorNabeel Omer <nabeel.omer@sony.com>
Tue, 27 Aug 2024 16:10:14 +0000 (27 17:10 +0100)
committerGitHub <noreply@github.com>
Tue, 27 Aug 2024 16:10:14 +0000 (27 17:10 +0100)
tree6c0cc063c929c36e4d03ece992c2b333558bd376
parentd0fe52d95194db09b3486378eae1b5ca5d0a286a
[NFC] Reserve the number of operands before push_back (#106234)

This reduces the number of allocations inside the loop.

Partially addresses #105836
llvm/lib/IR/ConstantsContext.h