|Issue||Fix Version||Assignee||Priority||Status||Resolution||Resolved In Build|
The logic for the new OptimizeFill code misses a case where the Phi usage is different than expected. Sometimes during transformation of the loop there are uses of the memory phi outside the loop. This seems like a benign bug but it interferes with the fill matching logic that assumes the store in the loop should be the outgoing state. The fix is to allow the phi to be used outside the loop and replace it with the outgoing memory of the call to the fill.