Skip to content

Commit 0b4b682

Browse files
sys-igcigcbot
authored andcommitted
[Autobackout][FunctionalRegression]Revert of change: 1a3dbe9: Fixing kernel arg alignment
The change fixes kernel arg alignment seting. If a kernel argument has align attribute set then the align value is used for initialization.
1 parent 070e5aa commit 0b4b682

File tree

2 files changed

+0
-276
lines changed

2 files changed

+0
-276
lines changed

IGC/Compiler/Optimizer/OpenCLPasses/KernelArgs/KernelArgs.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,6 @@ alignment_t KernelArg::calcAlignment(const Argument* arg, const DataLayout* DL)
102102
// If we don't need to allocate, we certainly don't need alignment
103103
if (!needsAllocation()) return 0;
104104

105-
if (arg->hasAttribute(llvm::Attribute::Alignment))
106-
return arg->getParamAlign().valueOrOne().value();
107105
Type* typeToAlign = arg->getType();
108106
// Usually, we return the alignment of the parameter type.
109107
// For local pointers, we need the alignment of the *contained* type.

IGC/ocloc_tests/SPIRV-Asm/ArgsAlignment.spvasm

Lines changed: 0 additions & 274 deletions
This file was deleted.

0 commit comments

Comments
 (0)