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