diff options
author | Chris Lattner <sabre@nondot.org> | 2011-04-18 06:36:55 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-04-18 06:36:55 +0000 |
commit | 202a7a1e3fa661bf78b98d77de7e2d575facd9ee (patch) | |
tree | 97061def85cfbfc4d5ad8eb737d8f3ac9ab8a7c3 /lib | |
parent | 1518afddea6c0a4275a9ac64a9ffe2b6b4c0600a (diff) |
Add a new bit that ImmLeaf's can opt into, which allows them to duck out of
the generated FastISel. X86 doesn't need to generate code to match ADD16ri8
since ADD16ri will do just fine. This is a small codesize win in the generated
instruction selector.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129692 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/X86/X86InstrInfo.td | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/Target/X86/X86InstrInfo.td b/lib/Target/X86/X86InstrInfo.td index c278e0921e..2b928727f3 100644 --- a/lib/Target/X86/X86InstrInfo.td +++ b/lib/Target/X86/X86InstrInfo.td @@ -481,9 +481,12 @@ def X86_COND_O : PatLeaf<(i8 13)>; def X86_COND_P : PatLeaf<(i8 14)>; // alt. COND_PE def X86_COND_S : PatLeaf<(i8 15)>; -def i16immSExt8 : ImmLeaf<i16, [{ return Imm == (char)Imm; }]>; -def i32immSExt8 : ImmLeaf<i32, [{ return Imm == (char)Imm; }]>; -def i64immSExt8 : ImmLeaf<i64, [{ return Imm == (char)Imm; }]>; +let FastIselShouldIgnore = 1 in { // FastIsel should ignore all simm8 instrs. + def i16immSExt8 : ImmLeaf<i16, [{ return Imm == (char)Imm; }]>; + def i32immSExt8 : ImmLeaf<i32, [{ return Imm == (char)Imm; }]>; + def i64immSExt8 : ImmLeaf<i64, [{ return Imm == (char)Imm; }]>; +} + def i64immSExt32 : ImmLeaf<i64, [{ return Imm == (int32_t)Imm; }]>; |