Unverified Commit dce77a35 authored by Florian Hahn's avatar Florian Hahn Committed by GitHub
Browse files

[IndVars] Preserve flags of narrow IV inc if replacing with wider inc. (#80446)

We are replacing a narrow IV increment with a wider one. If the original
(narrow) increment did not wrap, the wider one should not wrap either.
Set the flags to be the union of both wide increment and original
increment; this ensures we preserve flags SCEV could infer for the wider
increment.

Fixes https://github.com/llvm/llvm-project/issues/71517.
parent d2e4a725
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment