[all-commits] [llvm/llvm-project] d535a9: [FPEnv] IRBuilder fails to add strictfp attribute

Kevin P. Neal via All-commits all-commits at lists.llvm.org
Mon Aug 3 10:25:51 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d535a91d13b88b547ba24ec50337aa0715d74d4d
      https://github.com/llvm/llvm-project/commit/d535a91d13b88b547ba24ec50337aa0715d74d4d
  Author: Kevin P. Neal <kevin.neal at sas.com>
  Date:   2020-08-03 (Mon, 03 Aug 2020)

  Changed paths:
    M llvm/include/llvm/IR/IRBuilder.h
    M llvm/unittests/IR/IRBuilderTest.cpp

  Log Message:
  -----------
  [FPEnv] IRBuilder fails to add strictfp attribute

The strictfp attribute is required on all function calls in a function
that is itself marked with the strictfp attribute. The IRBuilder knows
this and has a method for adding the attribute to function call instructions.

If a function being called has the strictfp attribute itself then the
IRBuilder will refuse to add the attribute to the calling instruction
despite being asked to add it. Eliminate this error.

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




More information about the All-commits mailing list