[llvm] eba7cbd - [NFC][PowerPC] Remove the dead conditions in the if(cond)
QingShan Zhang via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 11 01:58:51 PST 2019
Author: QingShan Zhang
Date: 2019-12-11T09:57:06Z
New Revision: eba7cbd3d06b3a84a72dcb6601a667a095c32664
URL: https://github.com/llvm/llvm-project/commit/eba7cbd3d06b3a84a72dcb6601a667a095c32664
DIFF: https://github.com/llvm/llvm-project/commit/eba7cbd3d06b3a84a72dcb6601a667a095c32664.diff
LOG: [NFC][PowerPC] Remove the dead conditions in the if(cond)
Added:
Modified:
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
index dce1a02704bb..682517d42ba6 100644
--- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
+++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
@@ -11066,9 +11066,7 @@ PPCTargetLowering::EmitInstrWithCustomInserter(MachineInstr &MI,
DebugLoc dl = MI.getDebugLoc();
TII->insertSelect(*BB, MI, dl, MI.getOperand(0).getReg(), Cond,
MI.getOperand(2).getReg(), MI.getOperand(3).getReg());
- } else if (MI.getOpcode() == PPC::SELECT_CC_I4 ||
- MI.getOpcode() == PPC::SELECT_CC_I8 ||
- MI.getOpcode() == PPC::SELECT_CC_F4 ||
+ } else if (MI.getOpcode() == PPC::SELECT_CC_F4 ||
MI.getOpcode() == PPC::SELECT_CC_F8 ||
MI.getOpcode() == PPC::SELECT_CC_F16 ||
MI.getOpcode() == PPC::SELECT_CC_QFRC ||
@@ -11080,8 +11078,6 @@ PPCTargetLowering::EmitInstrWithCustomInserter(MachineInstr &MI,
MI.getOpcode() == PPC::SELECT_CC_VSRC ||
MI.getOpcode() == PPC::SELECT_CC_SPE4 ||
MI.getOpcode() == PPC::SELECT_CC_SPE ||
- MI.getOpcode() == PPC::SELECT_I4 ||
- MI.getOpcode() == PPC::SELECT_I8 ||
MI.getOpcode() == PPC::SELECT_F4 ||
MI.getOpcode() == PPC::SELECT_F8 ||
MI.getOpcode() == PPC::SELECT_F16 ||
More information about the llvm-commits
mailing list