Skip to content
Commit 2f43c816 authored by Sanjay Patel's avatar Sanjay Patel Committed by Tom Stellard
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.

(cherry picked from commit 5b83261c)
parent 9ac5717f
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