Skip to content
Commit 5b83261c authored by Sanjay Patel's avatar Sanjay Patel
Browse files

[DivRemPairs] make sure we have a valid CFG for hoisting division

This transform was added with e38b7e89
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.
parent d3c70d9f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment