reames added a comment. Posted an enhancement for phi handling in GVN: https://reviews.llvm.org/D98080 I'd be curious to know if that's enough for the original test case. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D97837/new/ https://reviews.llvm.org/D97837