[llvm-commits] [llvm] r53534 - in /llvm/trunk: lib/Transforms/Scalar/InstructionCombining.cpp test/Transforms/InstCombine/2008-07-13-DivZero.ll test/Transforms/InstCombine/udiv_select_to_select_shift.ll

Duncan Sands baldrick at free.fr
Mon Jul 14 00:32:04 PDT 2008


Hi Chris,

> +    // If we found a call to a function, we can't assume it will return, so
> +    // information from below it cannot be propagated above it.
> +    if (isa<CallInst>(BBI) && !isa<IntrinsicInst>(BBI))
> +      break;

I guess you only really need to exit here if SI is zero.

Ciao,

Duncan.



More information about the llvm-commits mailing list