[AArch64] Use canonical copy idiom
authorEvandro Menezes <e.menezes@samsung.com>
Wed, 19 Dec 2018 22:24:31 +0000 (22:24 +0000)
committerEvandro Menezes <e.menezes@samsung.com>
Wed, 19 Dec 2018 22:24:31 +0000 (22:24 +0000)
Use only the canonical form of the alias for register transfers in the
`IsCopyIdiomPred` predicate.

llvm-svn: 349685

llvm/lib/Target/AArch64/AArch64SchedPredicates.td

index a48f1dc..d5e5acc 100644 (file)
@@ -295,9 +295,7 @@ def IsCopyIdiomFn     : TIIPredicate<"isCopyIdiom",
                                                CheckIsRegOperand<2>,
                                                CheckAny<
                                                  [CheckRegOperand<1, WZR>,
-                                                  CheckRegOperand<1, XZR>,
-                                                  CheckRegOperand<2, WZR>,
-                                                  CheckRegOperand<2, XZR>]>,
+                                                  CheckRegOperand<1, XZR>]>,
                                                CheckShiftBy0]>>>],
                                        MCReturnStatement<FalsePred>>>;
 def IsCopyIdiomPred   : MCSchedPredicate<IsCopyIdiomFn>;