2 Commits

Author SHA1 Message Date
Serguei Katkov
99da317331 [LoopPredication] Fix the LoopPredication by feezing the result of predication.
LoopPredication introduces the use of possibly posion value in branch (guard)
instruction, so to avoid introducing undefined behavior it should be frozen.

Reviewed By: mkazantsev
Differential Revision: https://reviews.llvm.org/D146685
2023-03-29 15:12:00 +07:00
Serguei Katkov
c96269055f [LoopPredication] Add a test demonstrating bug.
LoopPredication may introduce undefined behavior.
2023-03-22 18:14:00 +07:00