[llvm-bugs] [Bug 32829] New: SmallPtrSet usage in SROA could introduce non-determinism in Clang
llvm-bugs at lists.llvm.org
Thu Apr 27 11:10:12 PDT 2017
Bug ID: 32829
Summary: SmallPtrSet usage in SROA could introduce
non-determinism in Clang
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: gkistanova at gmail.com
CC: llvm-bugs at lists.llvm.org
SROA uses a SmallPtrSet for holding speculated SelectInst items.
SmallPtrSet<SelectInst *, 8> SelectUsers;
The result depends on a particular order in which the items get iterated from
This works fine while that SmallPtrSet object remains small. However, if it
grows, the addresses get changed, and the iteration order gets
The issue could be exposed, for example, by nondeterministic
".sroa.speculated<changing-number>" names in IR.
The same might apply to SmallPtrSet<PHINode *, 8> PHIUsers; as well.
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-bugs