File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -998,7 +998,6 @@ static RISCVCC::CondCode getCondFromBranchOpc(unsigned Opc) {
998998 }
999999}
10001000
1001-
10021001static bool evaluateCondBranch (unsigned CC, int64_t C0, int64_t C1) {
10031002 switch (CC) {
10041003 default :
@@ -1351,7 +1350,7 @@ bool RISCVInstrInfo::optimizeCondBranch(MachineInstr &MI) const {
13511350 int64_t C0, C1;
13521351 if (isFromLoadImm (Cond[1 ], C0) && isFromLoadImm (Cond[2 ], C1)) {
13531352 unsigned NewCC =
1354- evaluateCondBranch (CC, C0, C1) ? RISCVCC::COND_EQ : RISCVCC::COND_NE;
1353+ evaluateCondBranch (CC, C0, C1) ? RISCVCC::COND_EQ : RISCVCC::COND_NE;
13551354 Cond[0 ] = MachineOperand::CreateImm (NewCC);
13561355 Cond[1 ] = Cond[2 ] = MachineOperand::CreateReg (RISCV::X0, /* isDef=*/ false );
13571356 modifyBranch ();
You can’t perform that action at this time.
0 commit comments