]> granicus.if.org Git - llvm/commit
[AMDGPU][SILoadStoreOptimizer] NFC: Refactor code
authorPiotr Sobczak <piotr.sobczak@amd.com>
Fri, 4 Oct 2019 07:09:40 +0000 (07:09 +0000)
committerPiotr Sobczak <piotr.sobczak@amd.com>
Fri, 4 Oct 2019 07:09:40 +0000 (07:09 +0000)
commitb6dd1b58dec8372da715b017845564c4f360edd9
tree7d9e9a2ca244d7f39eadbaa84a83a52bbc01e5bb
parent7b071ccb516fa110169d77e9dddd9d42f761e664
[AMDGPU][SILoadStoreOptimizer] NFC: Refactor code

Summary:
This patch fixes a potential aliasing problem in InstClassEnum,
where local values were mixed with machine opcodes.

Introducing InstSubclass will keep them separate and help extending
InstClassEnum with other instruction types (e.g. MIMG) in the future.

This patch also makes getSubRegIdxs() more concise.

Reviewers: nhaehnle, arsenm, tstellar

Reviewed By: arsenm

Subscribers: arsenm, kzhuravl, jvesely, wdng, nhaehnle, yaxunl, dstuttard, tpr, t-tye, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D68384

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373699 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/SILoadStoreOptimizer.cpp