diff options
author | Argyrios Kyrtzidis <kyrtzidis@apple.com> | 2022-10-06 10:02:19 -0700 |
---|---|---|
committer | Argyrios Kyrtzidis <kyrtzidis@apple.com> | 2022-10-14 12:26:58 -0700 |
commit | d877e3fe71676b0ff10410d80456b35cdd5bf796 (patch) | |
tree | 3ff611f2bd0a35fb89232b209bf46505571d7213 /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | 34bbe6548dd9a932aecbcf417714ba103e0e2ddf (diff) | |
download | llvm-d877e3fe71676b0ff10410d80456b35cdd5bf796.zip llvm-d877e3fe71676b0ff10410d80456b35cdd5bf796.tar.gz llvm-d877e3fe71676b0ff10410d80456b35cdd5bf796.tar.bz2 |
[Transforms/ObjCARC] Fix non-deterministic output of `ObjCARCOptPass`
`ProvenanceAnalysis::related()` was assuming that the order of parameters for `relatedCheck()` was not affecting
the result but this was not the case when both parameters were `PHINode`s.
Due to this assumption `ProvenanceAnalysis::related()` was ordering the parameters based on pointer value which resulted in
non-deterministic behavior.
To address this change `relatedPHI()` so that it gives the same result independent of the parameter order.
rdar://100325456
Differential Revision: https://reviews.llvm.org/D135376
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions