[PATCH] D106891: [AMDGPU] [Remarks] Emit optimization remarks for FP atomics

Anshil Gandhi via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 5 11:52:47 PDT 2021


gandhi21299 marked an inline comment as done.
gandhi21299 added inline comments.


================
Comment at: llvm/lib/Target/AMDGPU/SIISelLowering.cpp:12155
+          OptimizationRemark Remark(DEBUG_TYPE, "Passed", RMW->getFunction());
+          Remark << "A floating-point atomic instruction with no following use"
+                    " will generate an unsafe hardware instruction";
----------------
rampitec wrote:
> I do not understand this message about the use. We are checking the use below simply because there was no return version of global_atomic_add_f32 on gfx908, so we are forced to expand it.
right, I forgot to erase that part. How does the following look:

"A floating-point atomic instruction will generate an unsafe hardware instruction"

I am not sure what other details I could put in here


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D106891/new/

https://reviews.llvm.org/D106891



More information about the cfe-commits mailing list