[all-commits] [llvm/llvm-project] c378e5: Set some fast math attributes in setFunctionAttrib...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Wed Jan 15 19:23:25 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c378e52cb9d1197bd828008ffdeaf3cebdca1506
      https://github.com/llvm/llvm-project/commit/c378e52cb9d1197bd828008ffdeaf3cebdca1506
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2020-01-15 (Wed, 15 Jan 2020)

  Changed paths:
    M llvm/include/llvm/CodeGen/CommandFlags.inc
    M llvm/lib/Target/TargetMachine.cpp

  Log Message:
  -----------
  Set some fast math attributes in setFunctionAttributes

This will provide a more consistent view to codegen for these
attributes. The current system is somewhat awkward, and the fields in
TargetOptions are reset based on the command line flag if the
attribute isn't set. By forcing these attributes with the flag, there
can never be an inconsistency in the behavior if code directly
inspects the attribute on the function without considering the command
line flags.




More information about the All-commits mailing list