[llvm] r349685 - [AArch64] Use canonical copy idiom
Evandro Menezes via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 19 14:24:31 PST 2018
Author: evandro
Date: Wed Dec 19 14:24:31 2018
New Revision: 349685
URL: http://llvm.org/viewvc/llvm-project?rev=349685&view=rev
Log:
[AArch64] Use canonical copy idiom
Use only the canonical form of the alias for register transfers in the
`IsCopyIdiomPred` predicate.
Modified:
llvm/trunk/lib/Target/AArch64/AArch64SchedPredicates.td
Modified: llvm/trunk/lib/Target/AArch64/AArch64SchedPredicates.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64SchedPredicates.td?rev=349685&r1=349684&r2=349685&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64SchedPredicates.td (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64SchedPredicates.td Wed Dec 19 14:24:31 2018
@@ -295,9 +295,7 @@ def IsCopyIdiomFn : TIIPredicate<"is
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>;
More information about the llvm-commits
mailing list