mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
fix formatting, punctuation; NFC
llvm-svn: 271804
This commit is contained in:
parent
dde840bfa3
commit
1388784f5b
@ -2438,7 +2438,7 @@ Instruction *InstCombiner::visitICmpInstWithCastAndCast(ICmpInst &ICI) {
|
||||
return new ICmpInst(ICI.getUnsignedPredicate(), LHSCIOp, RHSCIOp);
|
||||
}
|
||||
|
||||
// If we aren't dealing with a constant on the RHS, exit early
|
||||
// If we aren't dealing with a constant on the RHS, exit early.
|
||||
ConstantInt *CI = dyn_cast<ConstantInt>(ICI.getOperand(1));
|
||||
if (!CI)
|
||||
return nullptr;
|
||||
@ -3166,8 +3166,7 @@ Instruction *InstCombiner::visitICmpInst(ICmpInst &I) {
|
||||
/// complex to least complex. This puts constants before unary operators,
|
||||
/// before binary operators.
|
||||
if (Op0Cplxity < Op1Cplxity ||
|
||||
(Op0Cplxity == Op1Cplxity &&
|
||||
swapMayExposeCSEOpportunities(Op0, Op1))) {
|
||||
(Op0Cplxity == Op1Cplxity && swapMayExposeCSEOpportunities(Op0, Op1))) {
|
||||
I.swapOperands();
|
||||
std::swap(Op0, Op1);
|
||||
Changed = true;
|
||||
@ -3179,8 +3178,7 @@ Instruction *InstCombiner::visitICmpInst(ICmpInst &I) {
|
||||
|
||||
// comparing -val or val with non-zero is the same as just comparing val
|
||||
// ie, abs(val) != 0 -> val != 0
|
||||
if (I.getPredicate() == ICmpInst::ICMP_NE && match(Op1, m_Zero()))
|
||||
{
|
||||
if (I.getPredicate() == ICmpInst::ICMP_NE && match(Op1, m_Zero())) {
|
||||
Value *Cond, *SelectTrue, *SelectFalse;
|
||||
if (match(Op0, m_Select(m_Value(Cond), m_Value(SelectTrue),
|
||||
m_Value(SelectFalse)))) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user