File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -154,22 +154,23 @@ template <typename KeyTy> class SPIRVDuplicatesTrackerBase {
154
154
if (find (V, MF).isValid ())
155
155
return ;
156
156
157
- Storage[V][MF] = R;
157
+ auto &S = Storage[V];
158
+ S[MF] = R;
158
159
if (std::is_same<Function,
159
160
typename std::remove_const<
160
161
typename std::remove_pointer<KeyTy>::type>::type>() ||
161
162
std::is_same<Argument,
162
163
typename std::remove_const<
163
164
typename std::remove_pointer<KeyTy>::type>::type>())
164
- Storage[V] .setIsFunc (true );
165
+ S .setIsFunc (true );
165
166
if (std::is_same<GlobalVariable,
166
167
typename std::remove_const<
167
168
typename std::remove_pointer<KeyTy>::type>::type>())
168
- Storage[V] .setIsGV (true );
169
+ S .setIsGV (true );
169
170
if (std::is_same<Constant,
170
171
typename std::remove_const<
171
172
typename std::remove_pointer<KeyTy>::type>::type>())
172
- Storage[V] .setIsConst (true );
173
+ S .setIsConst (true );
173
174
}
174
175
175
176
Register find (KeyTy V, const MachineFunction *MF) const {
You can’t perform that action at this time.
0 commit comments