ΒΆinline bool isSignBitCheck(
    ICmpInst::Predicate Pred,
    const llvm::APInt& RHS,
    bool& TrueIfSigned)

Description

Given an exploded icmp instruction, return true if the comparison only checks the sign bit. If it only checks the sign bit, set TrueIfSigned if the result of the comparison is true when the input value is signed.

Declared at: llvm/lib/Transforms/InstCombine/InstCombineInternal.h:119

Parameters

ICmpInst::Predicate Pred
const llvm::APInt& RHS
bool& TrueIfSigned