[all-commits] [llvm/llvm-project] ee0882: [SimplifyCFG] propagate fast-math-flags (FMF) from...

RotateRight via All-commits all-commits at lists.llvm.org
Fri Nov 15 13:14:41 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ee0882bdf866ad8877dfda3820a822c851d0733a
      https://github.com/llvm/llvm-project/commit/ee0882bdf866ad8877dfda3820a822c851d0733a
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2019-11-15 (Fri, 15 Nov 2019)

  Changed paths:
    M llvm/lib/Transforms/Utils/SimplifyCFG.cpp
    M llvm/test/Transforms/SimplifyCFG/HoistCode.ll

  Log Message:
  -----------
  [SimplifyCFG] propagate fast-math-flags (FMF) from phi to select

This is another step towards having FMF apply only to FP values
rather than those + fcmp. See PR38086 for one of the original
discussions/motivations:
https://bugs.llvm.org/show_bug.cgi?id=38086

And the test here is derived from PR39535:
https://bugs.llvm.org/show_bug.cgi?id=39535

Currently, we lose FMF when converting any phi to select in
SimplifyCFG. There are a small number of similar changes needed
to correct within SimplifyCFG, so it should be quick to patch
this pass up.

FMF was extended to select and phi with:
D61917
D67564

Differential Revision: https://reviews.llvm.org/D70208




More information about the All-commits mailing list