Skip to content

Commit 1a88c19

Browse files
kazutakahiratakrishna2803
authored andcommitted
[AArch64] Remove an unnecessary cast (NFC) (llvm#152260)
Pred is already of CmpInst::Predicate.
1 parent b4c1f64 commit 1a88c19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1697,7 +1697,7 @@ bool AArch64InstructionSelector::selectCompareBranchFedByFCmp(
16971697
emitFPCompare(FCmp.getOperand(2).getReg(), FCmp.getOperand(3).getReg(), MIB,
16981698
Pred);
16991699
AArch64CC::CondCode CC1, CC2;
1700-
changeFCMPPredToAArch64CC(static_cast<CmpInst::Predicate>(Pred), CC1, CC2);
1700+
changeFCMPPredToAArch64CC(Pred, CC1, CC2);
17011701
MachineBasicBlock *DestMBB = I.getOperand(1).getMBB();
17021702
MIB.buildInstr(AArch64::Bcc, {}, {}).addImm(CC1).addMBB(DestMBB);
17031703
if (CC2 != AArch64CC::AL)

0 commit comments

Comments
 (0)