mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-12 22:26:14 +00:00
[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:
parent
df46390b38
commit
613b7c3337
@ -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