-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[LLVM] Create TBAA information based on the unrelying buffer type (#6046
) Currently, the TBAA information is based on the access type, i.e. the data type from the load or store instruction. When the same memory area is accessed with different types, the corresponding load/store instruction may end up not being aliased to each other. This could lead to incorrect code being generated. An example of when such a situation can occur is when two different buffer_decl's are created for the same buffer: ba = buffer_decl(... dtype = 'int16' ...) bb = buffer_decl(data = ba.data, dtype = 'int32x32' ...) Then instructions ba[x] = 0 ... = bb[x] may be reordered in the final code due to the alias info indicating that they are not aliased.
- Loading branch information
Krzysztof Parzyszek
authored
Jul 13, 2020
1 parent
5f4b9a9
commit af8af0c
Showing
2 changed files
with
20 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters