[PATCH] D87479: [InstCombine] Don't sink the fdiv from (fmul (fdiv 1.0, %x), %y) if the fdiv isn't in the same basic block as the fmul

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 16 08:04:52 PDT 2021


spatel added a comment.

The `-Ofast -fno-unroll-loops` example still shows up in the 12.0 release, but is fixed in trunk:
https://godbolt.org/z/4vss8qrTG

I didn't track down the commit that changed it, but I have added a regression test, so it will stick:
31e997fda1c6 <https://reviews.llvm.org/rG31e997fda1c6c1077a093177a017b0a56149c750>


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D87479/new/

https://reviews.llvm.org/D87479



More information about the llvm-commits mailing list