[InstSimplify] Avoid use of ConstantExpr::getCast()

Use the constant folding API instead.

One of these uses actually improves results, because the bitcast
expression gets folded away.

GitOrigin-RevId: b35f2940e9315dd6f5e49a6fa49e4418d4e1b56e
2 files changed