Files
swift-mirror/lib/SILOptimizer/LoopTransforms/LoopRotate.cpp
Nate Chandler 3e8df52e4c [LoopRotate] Don't phi forwarded guaranteed value.
A guaranteed value produced by a begin_borrow can't be both used as
an operand of an ownership forwarding-instruction and also reborrowed by
being used as a phi argument.

Avoid that by stopping rotation when encountering a header block
containing an ownership-forwarding instruction whose forwarded ownership
kind is guaranteed; such a rotation may result in using both the
original guaranteed value and the resulting guaranteed value as phi
arguments.
2021-12-07 15:54:12 -08:00

20 KiB