Skip to content

Commit 70fded8

Browse files
michalpaszkowskiigcbot
authored andcommitted
Use deterministic MapVector for funcAttributeMap
Changed map container from llvm::SmallDenseMap to llvm::MapVector for storing mappings between llvm::Function* and function attributes. The map is sequentially read in ZEBinaryBuilder::addFunctionAttrs and the attributes are added to ZEInfo in that order. The container must be deterministic to avoid unexpected differences in the ZEBinary.
1 parent 24e561c commit 70fded8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

IGC/Compiler/CISACodeGen/CISABuilder.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ namespace IGC
820820
unsigned argumentStackSize = 0;
821821
unsigned allocaStackSize = 0;
822822
};
823-
llvm::SmallDenseMap<llvm::Function*, FuncAttrib> funcAttributeMap;
823+
llvm::MapVector<llvm::Function*, FuncAttrib> funcAttributeMap;
824824

825825
public:
826826
// Used by EmitVISAPass to set function attributes

0 commit comments

Comments
 (0)