1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

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

llvm-svn: 264130
This commit is contained in:
Sanjoy Das 2016-03-23 02:24:15 +00:00
parent 1360ce917f
commit 80f0d52e3d

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) {