1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00

[AArch64] Use canonical copy idiom

Use only the canonical form of the alias for register transfers in the
`IsCopyIdiomPred` predicate.

llvm-svn: 349685
This commit is contained in:
Evandro Menezes 2018-12-19 22:24:31 +00:00
parent 045fafaf88
commit c473ea1899

View 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>;