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:
parent
1360ce917f
commit
80f0d52e3d
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user