This is an archive of the discontinued LLVM Phabricator instance.

[DAG] Retain nuw flags when reassociating adds
ClosedPublic

Authored by dmgreen on Apr 20 2023, 7:10 AM.

Details

Summary

Given two adds that are both nuw, they will still be nuw after being reassociated. (They only increase in value and at no point wrap).
https://alive2.llvm.org/ce/z/JrYM6H

Diff Detail

Event Timeline

dmgreen created this revision.Apr 20 2023, 7:10 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 20 2023, 7:10 AM
dmgreen requested review of this revision.Apr 20 2023, 7:10 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 20 2023, 7:10 AM
This revision is now accepted and ready to land.Apr 20 2023, 7:26 AM
This revision was automatically updated to reflect the committed changes.