[AMDGPU][SIFoldOperands] Consider the alignment constraints
authorChristudasan Devadasan <Christudasan.Devadasan@amd.com>
Wed, 16 Mar 2022 12:38:48 +0000 (18:08 +0530)
committerChristudasan Devadasan <Christudasan.Devadasan@amd.com>
Thu, 17 Mar 2022 02:57:53 +0000 (08:27 +0530)
commit6dd21d1db14f1589f93cb14e572320eaab823f16
treedf300bf9ce0981842367b602c0565cd2be5bd12e
parentaf717d4acac81b3abef6d76123b41d96c2bc7356
[AMDGPU][SIFoldOperands] Consider the alignment constraints

Enforced an alignment check while folding the operands.
llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
llvm/test/CodeGen/AMDGPU/si-fold-aligned-agprs.mir [new file with mode: 0644]
llvm/test/CodeGen/AMDGPU/si-fold-aligned-vgprs.mir [new file with mode: 0644]