[DAGCombiner][TargetLowering] Pass a SmallVector instead of a std::vector to BuildSDI...
authorCraig Topper <craig.topper@intel.com>
Mon, 30 Jul 2018 23:22:00 +0000 (23:22 +0000)
committerCraig Topper <craig.topper@intel.com>
Mon, 30 Jul 2018 23:22:00 +0000 (23:22 +0000)
commit2f60ef2c787dfd247956fd826ab5fdfb20b1d1bb
tree0172aa18f13938bbbb7509ddc242f51dd68715fc
parenta2227a3f9a31b9a20e4aa89eefb4344e15156f21
[DAGCombiner][TargetLowering] Pass a SmallVector instead of a std::vector to BuildSDIV/BuildUDIV/etc.

The vector contains the SDNodes that these functions create. The number of nodes is always a small number so we should use SmallVector to avoid a heap allocation.

llvm-svn: 338329
llvm/include/llvm/CodeGen/TargetLowering.h
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/lib/Target/AArch64/AArch64ISelLowering.h
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/lib/Target/PowerPC/PPCISelLowering.h