From: Evandro Menezes Date: Wed, 19 Dec 2018 22:24:31 +0000 (+0000) Subject: [AArch64] Use canonical copy idiom X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f236e027c64bfe2914a6da4623589019c8a7104a;p=llvm [AArch64] Use canonical copy idiom 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 --- diff --git a/lib/Target/AArch64/AArch64SchedPredicates.td b/lib/Target/AArch64/AArch64SchedPredicates.td index a48f1dcffaf..d5e5acccc4a 100644 --- a/lib/Target/AArch64/AArch64SchedPredicates.td +++ b/lib/Target/AArch64/AArch64SchedPredicates.td @@ -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>>; def IsCopyIdiomPred : MCSchedPredicate;