[PATCH] D87456: AMDGPU/GlobalISel Check target options before isKnownNeverSNaN
Petar Avramovic via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 10 07:56:57 PDT 2020
Petar.Avramovic created this revision.
Petar.Avramovic added reviewers: foad, arsenm.
Herald added subscribers: llvm-commits, kerbowa, hiraditya, t-tye, tpr, dstuttard, rovka, yaxunl, nhaehnle, jvesely, kzhuravl.
Herald added a project: LLVM.
Petar.Avramovic requested review of this revision.
Herald added a subscriber: wdng.
Target options (from function attributes in llvm-ir) are properly set
only for first function in input file. Other functions end up with same
options. Update target options at start of IRTranslator, sdag has similar
behavior.
Check for NoNaNsFPMath before isKnownNeverSNaN.
https://reviews.llvm.org/D87456
Files:
llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
llvm/test/CodeGen/AMDGPU/GlobalISel/fmed3.ll
llvm/test/CodeGen/AMDGPU/GlobalISel/frem.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87456.290976.patch
Type: text/x-patch
Size: 154458 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200910/0cd4c994/attachment-0001.bin>
More information about the llvm-commits
mailing list