[PATCH] D87511: GlobalISel/IRTranslator resetTargetOptions based on function attributes

Petar Avramovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 11 06:34:36 PDT 2020


Petar.Avramovic created this revision.
Petar.Avramovic added reviewers: arsenm, foad.
Herald added subscribers: llvm-commits, kerbowa, hiraditya, rovka, nhaehnle, jvesely.
Herald added a project: LLVM.
Petar.Avramovic requested review of this revision.
Herald added a subscriber: wdng.

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
function that was translated first).
This affects some existing tests with "no-nans-fp-math" attribute.
Follow-up on D87456 <https://reviews.llvm.org/D87456>.


https://reviews.llvm.org/D87511

Files:
  llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
  llvm/test/CodeGen/AMDGPU/GlobalISel/fmed3.ll
  llvm/test/CodeGen/AMDGPU/GlobalISel/frem.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87511.291198.patch
Type: text/x-patch
Size: 17423 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200911/9b3faf4c/attachment.bin>


More information about the llvm-commits mailing list