[llvm] [InstCombine] Use more inline elements in a SmallVector (PR #100942)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 28 13:42:00 PDT 2024
================
@@ -1500,7 +1500,7 @@ Instruction *InstCombinerImpl::visitCallInst(CallInst &CI) {
// Don't try to simplify calls without uses. It will not do anything useful,
// but will result in the following folds being skipped.
if (!CI.use_empty()) {
- SmallVector<Value *, 4> Args;
+ SmallVector<Value *, 8> Args;
----------------
topperc wrote:
Can this be rewritten as
```
SmallVector<Value *, 8> Args(CI.arg_begin(), CI.arg_end());
```
https://github.com/llvm/llvm-project/pull/100942
More information about the llvm-commits
mailing list