mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
Add a pattern for matching zero-store with 64-bit address. The pattern is enabled
only when the target ABI is N64. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146992 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5b484312c6
commit
caace8abdf
@ -1015,7 +1015,10 @@ def : Pat<(extloadi16_a addr:$src), (LHu addr:$src)>;
|
||||
def : Pat<(extloadi16_u addr:$src), (ULHu addr:$src)>;
|
||||
|
||||
// peepholes
|
||||
def : Pat<(store (i32 0), addr:$dst), (SW ZERO, addr:$dst)>;
|
||||
def : Pat<(store (i32 0), addr:$dst), (SW ZERO, addr:$dst)>,
|
||||
Requires<[NotN64]>;
|
||||
def : Pat<(store (i32 0), addr:$dst), (SW_P8 ZERO, addr:$dst)>,
|
||||
Requires<[IsN64]>;
|
||||
|
||||
// brcond patterns
|
||||
multiclass BrcondPats<RegisterClass RC, Instruction BEQOp, Instruction BNEOp,
|
||||
|
Loading…
x
Reference in New Issue
Block a user