Self-referential constants containing references to a merged function
no longer cause the MergeFunctions pass to infinite loop. Also adds a
reproduction IR which would otherwise fail, which was isolated from a similar
issue in Chromium.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
lib/Transforms/IPO/MergeFunctions.cpp | ||
---|---|---|
1517–1520 ↗ | (On Diff #29738) | Just FYI as an optional alternative. You could use a single SetVector for both, call insert() to insert into it, track your position with an increasing integer, and never remove from it. The way you've written it here is more common in llvm, I think. |
1520 ↗ | (On Diff #29738) | "Variable names should be nouns (as they represent state). The name should be camel case, and start with an upper case letter (e.g. Leader or Boats)." - http://llvm.org/docs/CodingStandards.html#name-types-functions-variables-and-enumerators-properly |