OSDN Git Service

[SelectionDAG] Pass std::vector by reference instead of by pointer to BuildSDIV/Build...
authorCraig Topper <craig.topper@intel.com>
Sat, 28 Jul 2018 19:44:20 +0000 (19:44 +0000)
committerCraig Topper <craig.topper@intel.com>
Sat, 28 Jul 2018 19:44:20 +0000 (19:44 +0000)
commitacb4985d700d18d0e0cb7d83e9df9d47726394bf
treed6aeda800aa1922ed1df952e8674df9142536f27
parente192af49a170ac54aadc8cb75b9e88ac2d54e937
[SelectionDAG] Pass std::vector by reference instead of by pointer to BuildSDIV/BuildUDIV.

This removes the need for an assert to ensure the pointer isn't null.

Years ago we had ifs the checked the pointer was non-null before very access to the vector. These checks were removed and replaced with a single assert. But a reference seems more suitable here.

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