Skip to content
Unverified Commit 7f1bf68d authored by Florian Hahn's avatar Florian Hahn
Browse files

[SCEVExpander] Only check overflow if it is needed.

9345ab3a updated generateOverflowCheck to skip creating checks that
always evaluate to false. This in turn means that we only need to check
for overflows if the result of the multiplication is actually used.

Sink the Or for the overflow check into ComputeEndCheck, so it is only
created when there's an actual check.
parent 1d21667c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment