OSDN Git Service

[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)
commit4a5776cc933be614bfb6210398c421452d45869b
treefb3d76002a72ad2432803299114ca813c49e25cf
parentef4200131b97d9aac229b8edd244ace10b810feb
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@338329 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/TargetLowering.h
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
lib/CodeGen/SelectionDAG/TargetLowering.cpp
lib/Target/AArch64/AArch64ISelLowering.cpp
lib/Target/AArch64/AArch64ISelLowering.h
lib/Target/PowerPC/PPCISelLowering.cpp
lib/Target/PowerPC/PPCISelLowering.h