]> granicus.if.org Git - llvm/commitdiff
[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.

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

lib/Target/AArch64/AArch64SchedPredicates.td

index a48f1dcffaffadd70758855a6735d01ee177af32..d5e5acccc4ad8350ce526ddc1f47e78026995e96 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>;