PankajDwivedi-25
PankajDwivedi-25
https://github.com/llvm/llvm-project/blob/e15545cad8297ec7555f26e5ae74a9f0511203e7/llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp#L2799 This is an unhandled case when the scavenger could not get a free register.
If the issue is the only with `readfirstlane`, possibly I will stop optimizing it.
PR:https://github.com/llvm/llvm-project/pull/166955 could be a temporary fix for the issue if its not same with other intrinsics.
I agree, but is it possible that the IR optimizations in llc pipeline pre-isel could generate such an optimization scope?
I can see we already have many IR passes pre-isel running in llc pipeline; they are also present in the IR pipeline. I see it is worth doing this, as...
> It makes more sense to move AMDGPUUniformIntrinsicCombine to the middle by middle end, you mean here to move in opt pipeline? this pass is already present in opt.