[llvm] r305694 - [AArch64] Fix order of checks in shouldScheduleAdjacent.
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 19 06:45:41 PDT 2017
Author: fhahn
Date: Mon Jun 19 08:45:41 2017
New Revision: 305694
URL: http://llvm.org/viewvc/llvm-project?rev=305694&view=rev
Log:
[AArch64] Fix order of checks in shouldScheduleAdjacent.
We need to check the opcode of FirstMI before accessing the operands. This
caused a buildbot failure during bootstrapping on AArch64.
Modified:
llvm/trunk/lib/Target/AArch64/AArch64MacroFusion.cpp
Modified: llvm/trunk/lib/Target/AArch64/AArch64MacroFusion.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64MacroFusion.cpp?rev=305694&r1=305693&r2=305694&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64MacroFusion.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64MacroFusion.cpp Mon Jun 19 08:45:41 2017
@@ -144,8 +144,8 @@ static bool shouldScheduleAdjacent(const
return FirstOpcode == AArch64::INSTRUCTION_LIST_END ||
(FirstOpcode == AArch64::MOVZXi &&
SecondMI.getOperand(3).getImm() == 16) ||
- (FirstMI->getOperand(3).getImm() == 32 &&
- FirstOpcode == AArch64::MOVKXi &&
+ (FirstOpcode == AArch64::MOVKXi &&
+ FirstMI->getOperand(3).getImm() == 32 &&
SecondMI.getOperand(3).getImm() == 48);
}
More information about the llvm-commits
mailing list