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
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D148804
[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).
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Apr 20 2023, 7:26 AM Closed by commit rGbbc983d33a17: [DAG] Retain nuw flags when reassociating adds (authored by dmgreen). · Explain WhyApr 20 2023, 11:05 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 515396 llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/Thumb2/mve-vhadd.ll
|