[libc-commits] [clang] [libc] [llvm] [AMDGPU] Implement variadic functions by IR lowering (PR #93362)

Pierre van Houtryve via libc-commits libc-commits at lists.llvm.org
Wed Jun 5 23:48:16 PDT 2024


================
@@ -992,6 +993,8 @@ void AMDGPUPassConfig::addIRPasses() {
   if (isPassEnabled(EnableImageIntrinsicOptimizer))
     addPass(createAMDGPUImageIntrinsicOptimizerPass(&TM));
 
+  addPass(createExpandVariadicsPass(ExpandVariadicsMode::Lowering));
----------------
Pierre-vh wrote:

Please add a kill switch `cl::opt` for the pass in the AMDGPUTargetMachine before landing, in case it has unforeseen issues. It'd be easier to default-disable while fixing, rather than revert a big patch :)

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


More information about the libc-commits mailing list