mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
[AArch64][Falkor] Fix MOVZ sched predicate to not assert on non-imm operands (e.g. blockaddress).
llvm-svn: 305752
This commit is contained in:
parent
3d87ec3654
commit
ad34e35a7f
@ -519,7 +519,8 @@ def FalkorReadIncSt : SchedReadAdvance<1, [FalkorWr_LdStInc_none_3cyc]>;
|
||||
|
||||
// SchedPredicates and WriteVariants for Immediate Zero and LSLFast/ASRFast
|
||||
// -----------------------------------------------------------------------------
|
||||
def FalkorImmZPred : SchedPredicate<[{MI->getOperand(1).getImm() == 0}]>;
|
||||
def FalkorImmZPred : SchedPredicate<[{MI->getOperand(1).isImm() &&
|
||||
MI->getOperand(1).getImm() == 0}]>;
|
||||
def FalkorOp1ZrReg : SchedPredicate<[{MI->getOperand(1).getReg() == AArch64::WZR ||
|
||||
|
||||
MI->getOperand(1).getReg() == AArch64::XZR}]>;
|
||||
|
Loading…
Reference in New Issue
Block a user