diff options
author | David Majnemer <david.majnemer@gmail.com> | 2015-09-06 06:49:59 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2015-09-06 06:49:59 +0000 |
commit | 135ca40a7db96c91840d55d075930e5bb81c1e8b (patch) | |
tree | e3b3380b3ed0f6b5a54ba48cb8f6036bce43f9c2 /clang/lib/Basic/Targets.cpp | |
parent | 10aac5fd0e5c2649571862aeb1e78228dcba3098 (diff) | |
download | bcm5719-llvm-135ca40a7db96c91840d55d075930e5bb81c1e8b.tar.gz bcm5719-llvm-135ca40a7db96c91840d55d075930e5bb81c1e8b.zip |
[InstCombine] Don't divide by zero when evaluating a potential transform
Trivial multiplication by zero may survive the worklist. We tried to
reassociate the multiplication with a division instruction, causing us
to divide by zero; bail out instead.
This fixes PR24726.
llvm-svn: 246939
Diffstat (limited to 'clang/lib/Basic/Targets.cpp')
0 files changed, 0 insertions, 0 deletions