Pattern top-level operators don't need to be restricted to a
authorDan Gohman <gohman@apple.com>
Mon, 11 Jan 2010 17:21:05 +0000 (17:21 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 11 Jan 2010 17:21:05 +0000 (17:21 +0000)
single user. The _su forms are intended for non-top-level nodes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93155 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86Instr64bit.td
lib/Target/X86/X86InstrInfo.td

index 6bfa9a6949bf0578e3c070a2ad47404498ac5e22..c6d32747c4e81ea642a9dcb520c81ca37273d28d 100644 (file)
@@ -2029,7 +2029,7 @@ def : Pat<(and (srl_su GR32:$src, (i8 8)), (i32 255)),
             (EXTRACT_SUBREG (i32 (COPY_TO_REGCLASS GR32:$src, GR32_ABCD)),
                             x86_subreg_8bit_hi))>,
       Requires<[In64BitMode]>;
-def : Pat<(srl_su GR16:$src, (i8 8)),
+def : Pat<(srl GR16:$src, (i8 8)),
           (EXTRACT_SUBREG
             (MOVZX32_NOREXrr8
               (EXTRACT_SUBREG (i16 (COPY_TO_REGCLASS GR16:$src, GR16_ABCD)),
index 6835176485a3285bb311ac220958bb4a977cd70f..3b8f6ec790e4a5e40ce71caaf6e5b6f21257ca91 100644 (file)
@@ -4485,7 +4485,7 @@ def : Pat<(i8 (trunc (srl_su GR32:$src, (i8 8)))),
           (EXTRACT_SUBREG (i16 (COPY_TO_REGCLASS GR32:$src, GR32_ABCD)),
                           x86_subreg_8bit_hi)>,
       Requires<[In32BitMode]>;
-def : Pat<(srl_su GR16:$src, (i8 8)),
+def : Pat<(srl GR16:$src, (i8 8)),
           (EXTRACT_SUBREG
             (MOVZX32rr8
               (EXTRACT_SUBREG (i16 (COPY_TO_REGCLASS GR16:$src, GR16_ABCD)),