Skip to content
Commit c7868bf0 authored by Andrew Trick's avatar Andrew Trick
Browse files

[disable-iv-rewrite] Allow WidenIV to handle NSW/NUW operations

better.

Don't immediately give up when an add operation can't be trivially
sign/zero-extended within a loop. If it has NSW/NUW flags, generate a
new expression with sign extended (non-recurrent) operand. As before,
if SCEV says that all sign extends are loop invariant, then we can
widen the operation.

llvm-svn: 139453
parent 0a57b238
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment