1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

Add a pattern for matching zero-store with 64-bit address. The pattern is enabled

only when the target ABI is N64. 

llvm-svn: 146992
This commit is contained in:
Akira Hatanaka 2011-12-20 21:50:49 +00:00
parent 8978194025
commit dba6358adc

View File

@ -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,