diff options
| author | Akira Hatanaka <ahatanaka@mips.com> | 2011-12-20 21:50:49 +0000 |
|---|---|---|
| committer | Akira Hatanaka <ahatanaka@mips.com> | 2011-12-20 21:50:49 +0000 |
| commit | 9b9bd1cc1555ad3304ace29e13b9fb111f4f6470 (patch) | |
| tree | f63f2b14e754e0c18b801d6fb7cd14a825972a39 /llvm/lib/Target | |
| parent | 2c59052984cd26579ddec5f5eda594918dc0b95e (diff) | |
| download | bcm5719-llvm-9b9bd1cc1555ad3304ace29e13b9fb111f4f6470.tar.gz bcm5719-llvm-9b9bd1cc1555ad3304ace29e13b9fb111f4f6470.zip | |
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
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/Mips/MipsInstrInfo.td | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Target/Mips/MipsInstrInfo.td b/llvm/lib/Target/Mips/MipsInstrInfo.td index 52609433e83..23444dc4a56 100644 --- a/llvm/lib/Target/Mips/MipsInstrInfo.td +++ b/llvm/lib/Target/Mips/MipsInstrInfo.td @@ -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, |

