aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/libclang/LibclangTest.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2023-03-01 08:32:27 -0500
committerSanjay Patel <spatel@rotateright.com>2023-03-01 08:54:23 -0500
commit452279efe21a61c7e17189da99347f7755f27cb0 (patch)
treeb2c178369b8e40fa7a0264b4bf2516909a5056ab /clang/unittests/libclang/LibclangTest.cpp
parent83bbd3fdbd75295669cf97967c38810d427c5c25 (diff)
downloadllvm-452279efe21a61c7e17189da99347f7755f27cb0.zip
llvm-452279efe21a61c7e17189da99347f7755f27cb0.tar.gz
llvm-452279efe21a61c7e17189da99347f7755f27cb0.tar.bz2
[InstCombine] prevent miscompiles from select-of-div/rem transform
This avoids the danger shown in issue #60906. There were no regression tests for these patterns, so these potential failures have been around for a long time. We freeze the condition and preserve the optimization because getting rid of a div/rem is always a win. Here are a couple of examples that can be corrected by freezing the condition: https://alive2.llvm.org/ce/z/sXHTTC Differential Revision: https://reviews.llvm.org/D144671
Diffstat (limited to 'clang/unittests/libclang/LibclangTest.cpp')
0 files changed, 0 insertions, 0 deletions