[SR-9648] [AD] Incorrect activity analysis on side-effecting code #52092
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
swift for tensorflow
Additional Detail from JIRA
md5: 59cb9000b1ca9f4ae77fbdc8221c0d86
Issue Description:
Original code:
Raw SIL:
Activity info:
The activity info is not correct: `%3` does not actually contribute to the return value of this function and thus is not active. This is because activity analysis is set to propagate USEFUL bottom up whenever it reaches a side-effecting operation. We shouldn't treat side effects in the environment as the function's result in activity analysis.
The text was updated successfully, but these errors were encountered: