[InstCombine] freeze operand in sdiv expansion
As discussed in issue #37809, this transform is not safe if the input is an undefined value. This is similar to a recent change for urem: d428f09b There is no difference in codegen on the basic examples, but this could lead to regressions. We may need to improve freeze analysis or lowering if that happens. Presumably, in real cases that are similar to the tests where a subsequent transform removes the select, we will also be able to remove the freeze by seeing that the parameter has 'noundef'.
parent
5fdfcf48
Please register or sign in to comment