Fix 2 LLVM assertion caused by an API miss-ues in Scalar
APInt::trunc only works if the destination size is strictly smaller
then the source size while APInt::sext and APInt::zext only works if
the destination size is strictly larger then the source size.