[clang] [llvm] [llvm][opt][Transforms][SPIR-V] Enable `InferAddressSpaces` for SPIR-V (PR #110897)

Matt Arsenault via cfe-commits cfe-commits at lists.llvm.org
Sun Dec 8 07:51:47 PST 2024


================
@@ -178,6 +266,9 @@ void SPIRVPassConfig::addIRPasses() {
     addPass(createSPIRVStructurizerPass());
   }
 
+  if (TM.getOptLevel() > CodeGenOptLevel::None)
+    addPass(createInferAddressSpacesPass(AddressSpace::Generic));
----------------
arsenm wrote:

I remember we had some phase ordering issues where we needed to run this multiple times. I'm not sure what the current status is. We certainly need to run this after inlining

https://github.com/llvm/llvm-project/pull/110897


More information about the cfe-commits mailing list