diff options
author | Sanjay Patel <spatel@rotateright.com> | 2022-05-11 13:57:33 -0400 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2022-05-11 14:01:28 -0400 |
commit | 99ef341ce9436e0471eb5502a8521fcaddaf851c (patch) | |
tree | 9f01dc60554d568c3cbe04121056d89c307f1fe7 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 5fdfcf489264fea9840fd70536b79cdcd22b1c0d (diff) | |
download | llvm-99ef341ce9436e0471eb5502a8521fcaddaf851c.zip llvm-99ef341ce9436e0471eb5502a8521fcaddaf851c.tar.gz llvm-99ef341ce9436e0471eb5502a8521fcaddaf851c.tar.bz2 |
[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:
d428f09b2c9d
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'.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions