File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -192,12 +192,10 @@ void SPIRVPassConfig::addIRPasses() {
192
192
TargetPassConfig::addIRPasses ();
193
193
194
194
if (TM.getSubtargetImpl ()->isVulkanEnv ()) {
195
- // The frontend has a tendency to quickly addrspacecast pointers to the
196
- // default address space, and relies on addrspacecast instructions at the
197
- // boundaries. Vulkan does not allow such things, and we must keep the
198
- // pointer address space stable.
199
- // This pass will determine real address space of a pointer, and patch
200
- // instructions removing Addrspacecasts.
195
+ // Vulkan does not allow address space casts. This pass is run to remove
196
+ // address space casts that can be removed.
197
+ // If an address space cast is not removed while targeting Vulkan, lowering
198
+ // will fail during MIR lowering.
201
199
addPass (createInferAddressSpacesPass (/* AddressSpace= */ 0 ));
202
200
203
201
// 1. Simplify loop for subsequent transformations. After this steps, loops
You can’t perform that action at this time.
0 commit comments