[StatepointLowering] Don't do two DenseMap lookups; nfci

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@264130 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Sanjoy Das 2016-03-23 02:24:15 +00:00
parent df46390b38
commit 613b7c3337

View File

@ -47,9 +47,10 @@ public:
/// spilled. Otherwise, the value has already been spilled and no
/// further action is required by the caller.
SDValue getLocation(SDValue Val) {
if (!Locations.count(Val))
auto I = Locations.find(Val);
if (I == Locations.end())
return SDValue();
return Locations[Val];
return I->second;
}
void setLocation(SDValue Val, SDValue Location) {