[InstCombine] Avoid uses of ConstantExpr::getOr()
Replace these with IRBuilder uses, as we don't (from a type perspective) care about Constant results. Switch the predicate to m_ImmConstant() instead of isa<Constant> to guarantee that these do get folded away and our assumptions about simplifications hold true.
Loading
Please sign in to comment