[PATCH] D68384: [AMDGPU][SILoadStoreOptimizer] NFC: Refactor code

Piotr Sobczak via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 3 05:26:51 PDT 2019


piotr created this revision.
Herald added subscribers: llvm-commits, t-tye, tpr, dstuttard, yaxunl, nhaehnle, wdng, jvesely, kzhuravl, arsenm.
Herald added a project: LLVM.

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.


Repository:
  rL LLVM

https://reviews.llvm.org/D68384

Files:
  lib/Target/AMDGPU/SILoadStoreOptimizer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68384.222990.patch
Type: text/x-patch
Size: 9280 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191003/24a40651/attachment-0001.bin>


More information about the llvm-commits mailing list