mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
R600/SI: Prefer SALU instructions for bit shift operations
All shift operations will be selected as SALU instructions and then if necessary lowered to VALU instructions in the SIFixSGPRCopies pass. This allows us to do more operations on the SALU which will improve performance and is also required for implementing private memory using indirect addressing, since the private memory pointers must stay in the scalar registers. This patch includes some fixes from Matt Arsenault. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194625 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -18,7 +18,8 @@ enum {
|
||||
VOP1 = 1 << 5,
|
||||
VOP2 = 1 << 6,
|
||||
VOP3 = 1 << 7,
|
||||
VOPC = 1 << 8
|
||||
VOPC = 1 << 8,
|
||||
SALU = 1 << 9
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user