return MadeChange;
}
-static bool OptimizeCmpExpression(CmpInst *CI, const TargetLowering &TLI) {
- if (SinkCmpExpression(CI, TLI))
+static bool OptimizeCmpExpression(CmpInst *CI, const TargetLowering *TLI) {
+ if (TLI && SinkCmpExpression(CI, *TLI))
return true;
if (CombineUAddWithOverflow(CI))
if (CmpInst *CI = dyn_cast<CmpInst>(I))
if (!TLI || !TLI->hasMultipleConditionRegisters())
- return OptimizeCmpExpression(CI, *TLI);
+ return OptimizeCmpExpression(CI, TLI);
if (LoadInst *LI = dyn_cast<LoadInst>(I)) {
stripInvariantGroupMetadata(*LI);