With opaque pointer support, the "ptr" type is introduced and thus BitCast is not necessary in some cases.
This work takes care of this change, and recognizes the new address patterns to do appropriate optimizations.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Target/AMDGPU/AMDGPULowerKernelAttributes.cpp | ||
---|---|---|
114 | Cannot see how it can be shorter. However, I have a new approach which seems more readable. | |
121 | Done. Thanks. | |
llvm/test/CodeGen/AMDGPU/implicit-arg-v5-opt-opaque-ptr.ll | ||
3 | Removed -O3. The code object version flag is still needed because v5 is not default, and the module flag approach is not ready yet. |
Would be shorter to check for bitcast first