[all-commits] [llvm/llvm-project] 9b4fa8: GlobalISel/IRTranslator resetTargetOptions based o...

petar-avramovic via All-commits all-commits at lists.llvm.org
Tue Sep 15 01:26:45 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 9b4fa854343166dd88e4f2e135239bbf1ce0a16c
      https://github.com/llvm/llvm-project/commit/9b4fa854343166dd88e4f2e135239bbf1ce0a16c
  Author: Petar Avramovic <Petar.Avramovic at amd.com>
  Date:   2020-09-15 (Tue, 15 Sep 2020)

  Changed paths:
    M llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
    M llvm/test/CodeGen/AMDGPU/GlobalISel/fmed3.ll
    M llvm/test/CodeGen/AMDGPU/GlobalISel/frem.ll

  Log Message:
  -----------
  GlobalISel/IRTranslator resetTargetOptions based on function attributes

Update TargetMachine.Options with function attributes before we start
to generate MIR instructions. This allows access to correct function
attributes via TargetMachine.Options (it used to access attributes of
the function that was translated first).
This affects some existing tests with "no-nans-fp-math" attribute.
Follow-up on D87456.

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




More information about the All-commits mailing list