forked from OSchip/llvm-project
[InstCombine] remove useless ‘InstCombiner::’. nfc
Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D130220
This commit is contained in:
parent
61b8a8a672
commit
1a0187c9e7
|
@ -2664,8 +2664,8 @@ Value *InstCombinerImpl::foldAndOrOfICmps(ICmpInst *LHS, ICmpInst *RHS,
|
||||||
// Inverted form (example):
|
// Inverted form (example):
|
||||||
// (icmp slt (X | Y), 0) & (icmp sgt (X & Y), -1) -> (icmp slt (X ^ Y), 0)
|
// (icmp slt (X | Y), 0) & (icmp sgt (X & Y), -1) -> (icmp slt (X ^ Y), 0)
|
||||||
bool TrueIfSignedL, TrueIfSignedR;
|
bool TrueIfSignedL, TrueIfSignedR;
|
||||||
if (InstCombiner::isSignBitCheck(PredL, *LHSC, TrueIfSignedL) &&
|
if (isSignBitCheck(PredL, *LHSC, TrueIfSignedL) &&
|
||||||
InstCombiner::isSignBitCheck(PredR, *RHSC, TrueIfSignedR) &&
|
isSignBitCheck(PredR, *RHSC, TrueIfSignedR) &&
|
||||||
(RHS->hasOneUse() || LHS->hasOneUse())) {
|
(RHS->hasOneUse() || LHS->hasOneUse())) {
|
||||||
Value *X, *Y;
|
Value *X, *Y;
|
||||||
if (IsAnd) {
|
if (IsAnd) {
|
||||||
|
|
|
@ -2981,7 +2981,7 @@ Instruction *InstCombinerImpl::foldICmpBitCast(ICmpInst &Cmp) {
|
||||||
const APInt *C;
|
const APInt *C;
|
||||||
bool TrueIfSigned;
|
bool TrueIfSigned;
|
||||||
if (match(Op1, m_APInt(C)) && Bitcast->hasOneUse() &&
|
if (match(Op1, m_APInt(C)) && Bitcast->hasOneUse() &&
|
||||||
InstCombiner::isSignBitCheck(Pred, *C, TrueIfSigned)) {
|
isSignBitCheck(Pred, *C, TrueIfSigned)) {
|
||||||
if (match(BCSrcOp, m_FPExt(m_Value(X))) ||
|
if (match(BCSrcOp, m_FPExt(m_Value(X))) ||
|
||||||
match(BCSrcOp, m_FPTrunc(m_Value(X)))) {
|
match(BCSrcOp, m_FPTrunc(m_Value(X)))) {
|
||||||
// (bitcast (fpext/fptrunc X)) to iX) < 0 --> (bitcast X to iY) < 0
|
// (bitcast (fpext/fptrunc X)) to iX) < 0 --> (bitcast X to iY) < 0
|
||||||
|
|
Loading…
Reference in New Issue