Commit 29da86b
Only strip invariant.load from special pointers (#57386)
Other backends (in this case NVPTX) require that `invariant.load`
metadata is maintained to generate non-coherent loads.
Currently, we unconditionally strip that metadata from all loads,
since our other uses of it may have become invalid.
x-ref: llvm/llvm-project#112834
JuliaGPU/CUDA.jl#2531
---------
Co-authored-by: Gabriel Baraldi <baraldigabriel@gmail.com>1 parent d43a5ad commit 29da86b
File tree
2 files changed
+18
-2
lines changed- src
- test/llvmpasses
2 files changed
+18
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2011 | 2011 | | |
2012 | 2012 | | |
2013 | 2013 | | |
2014 | | - | |
2015 | | - | |
| 2014 | + | |
| 2015 | + | |
| 2016 | + | |
| 2017 | + | |
2016 | 2018 | | |
2017 | 2019 | | |
2018 | 2020 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
93 | 107 | | |
94 | 108 | | |
95 | 109 | | |
| |||
0 commit comments