2 Commits

Author SHA1 Message Date
Roman Lebedev
80a89c55c6
[NFC] Port all LoopSimplify tests to -passes= syntax 2022-12-08 02:38:47 +03:00
Sameer Sahasrabuddhe
6c84884366 [LoopSimplify] don't separate nested loops with convergent calls
Summary:
When a loop has multiple backedges, loop simplification attempts to
separate them out into nested loops. This results in incorrect control
flow in the presence of some functions like a GPU barrier. This change
skips the transformation when such "convergent" function calls are
present in the loop body.

Reviewed By: nhaehnle

Differential Revision: https://reviews.llvm.org/D80078
2020-05-19 09:22:39 +05:30