mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
Fix bogus code that was eliminating needed args.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1259 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -155,11 +155,7 @@ private :
|
|||||||
unsigned getOperandMask(unsigned Opcode) {
|
unsigned getOperandMask(unsigned Opcode) {
|
||||||
switch (Opcode) {
|
switch (Opcode) {
|
||||||
case SUBcc: return 1 << 3; // Remove CC argument
|
case SUBcc: return 1 << 3; // Remove CC argument
|
||||||
case BA: case BRZ: // Remove Arg #0, which is always null or xcc
|
case BA: return 1 << 0; // Remove Arg #0, which is always null or xcc
|
||||||
case BRLEZ: case BRLZ:
|
|
||||||
case BRNZ: case BRGZ:
|
|
||||||
case BRGEZ: return 1 << 0;
|
|
||||||
|
|
||||||
default: return 0; // By default, don't hack operands...
|
default: return 0; // By default, don't hack operands...
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user