[PATCH] D109771: [AArch64][GlobalISel] Ensure atomic loads always get assigned GPR destinations

Amara Emerson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 15 15:28:35 PDT 2021


aemerson accepted this revision.
aemerson added inline comments.
This revision is now accepted and ready to land.


================
Comment at: llvm/lib/Target/AArch64/GISel/AArch64RegisterBankInfo.cpp:760
+
+    if (cast<GLoad>(&MI)->isAtomic()) {
+      // Atomics always use GPR destinations. Don't refine any further.
----------------
can use the reference variant: `cast<GLoad>(MI).isAtomic()`


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

https://reviews.llvm.org/D109771



More information about the llvm-commits mailing list