[InstCombine] fix propagation of FMF through select-of-fnegs
The existing code was unquestionably wrong - it looked at one fneg and ignored the other 2 instructions. It was also untested, so it didn't make the list of bugs flagged by Alive2. This is an unusual propagation, but Alive2 agress that we can intersect the fnegs and union that with the select, then apply the results to both new instructions: https://alive2.llvm.org/ce/z/SF8_dt
Loading
Please sign in to comment