@@ -251,18 +251,17 @@ static InstrSignature instrToSignature(const MachineInstr &MI,
251251<<<<<<< HEAD
252252=======
253253 // The only decorations that can be applied more than once to a given <id>
254- // or structure member are FuncParamAttr (38 ), UserSemantic (5635 ),
255- // CacheControlLoadINTEL (6442), and CacheControlStoreINTEL (6443). For all
256- // the rest of decorations, we will only add to the signature the Opcode,
257- // the id to which it applies, and the decoration id, disregarding any
258- // decoration flags. This will ensure that any subsequent decoration with
259- // the same id will be deemed as a duplicate. Then, at the call site, we
260- // will be able to handle duplicates in the best way.
254+ // or structure member are UserSemantic(5635 ), CacheControlLoadINTEL (6442 ),
255+ // and CacheControlStoreINTEL (6443). For all the rest of decorations, we
256+ // will only add to the signature the Opcode, the id to which it applies ,
257+ // and the decoration id, disregarding any decoration flags. This will
258+ // ensure that any subsequent decoration with the same id will be deemed as
259+ // a duplicate. Then, at the call site, we will be able to handle duplicates
260+ // in the best way.
261261 unsigned Opcode = MI.getOpcode ();
262262 if ((Opcode == SPIRV::OpDecorate) && i >= 2 ) {
263263 unsigned DecorationID = MI.getOperand (1 ).getImm ();
264- if (DecorationID != SPIRV::Decoration::FuncParamAttr &&
265- DecorationID != SPIRV::Decoration::UserSemantic &&
264+ if (DecorationID != SPIRV::Decoration::UserSemantic &&
266265 DecorationID != SPIRV::Decoration::CacheControlLoadINTEL &&
267266 DecorationID != SPIRV::Decoration::CacheControlStoreINTEL)
268267 continue ;
0 commit comments