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:
parent
045fafaf88
commit
c473ea1899
@ -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>;
|
||||
|
Loading…
Reference in New Issue
Block a user