diff options
author | Sanjay Patel <spatel@rotateright.com> | 2021-07-28 11:04:54 -0400 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2021-07-28 11:09:12 -0400 |
commit | 5b83261c1518a39636abe094123f1704bbfd972f (patch) | |
tree | d3ef57bc1225826e8f2fa2e204fc77584d2bbbfe /llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp | |
parent | d3c70d9f7765f8e731c0b892aea74b21d330d230 (diff) | |
download | llvm-5b83261c1518a39636abe094123f1704bbfd972f.zip llvm-5b83261c1518a39636abe094123f1704bbfd972f.tar.gz llvm-5b83261c1518a39636abe094123f1704bbfd972f.tar.bz2 |
[DivRemPairs] make sure we have a valid CFG for hoisting division
This transform was added with e38b7e894808ec2
and as shown in:
https://llvm.org/PR51241
...it could crash without an extra check of the blocks.
There might be a more compact way to write this constraint,
but we can't just count the successors/predecessors without
affecting a test that includes a switch instruction.
Diffstat (limited to 'llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp')
0 files changed, 0 insertions, 0 deletions