-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[compiler] Remove the RemoveFencesPass
This pass was originally introduced back in LLVM 7 to account for the fact that some of our targets couldn't handle the newly added `fence` instruction. Removing them bypassed the issue. While it is not semantically correct to remove fence instructions from LLVM IR in general, we were relying on the fact that the memory model is under-specified in OpenCL 1.2 and so could assume that fences were redundant. The ENORMOUS WARNING above this scheduling of this pass should be reason enough not to run it. It has not been necessary for several LLVM versions - it is claimed it is only in the host pipeline to ensure it's tested. This is not a good enough reason to keep a dodgy unnecessary pass. There aren't enough good reasons to keep it around unused in the codebase (the pass is trivial to implement by a downstream target if they did require it) so this commit removes the pass.
- Loading branch information
1 parent
2d186ab
commit 5ba3c05
Showing
7 changed files
with
0 additions
and
107 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
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
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
44 changes: 0 additions & 44 deletions
44
modules/compiler/utils/include/compiler/utils/remove_fences_pass.h
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.