[PATCH] D155884: [Attributor][AMDGPU] Improve indirect call support in closed modules

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 20 14:03:48 PDT 2023


arsenm added inline comments.


================
Comment at: llvm/lib/Transforms/IPO/AttributorAttributes.cpp:10411
+
+    auto IsValidTypePun = [](Type &T1, Type &T2) {
+      if (&T1 == &T2)
----------------
Move to a separate real function?


================
Comment at: llvm/lib/Transforms/IPO/AttributorAttributes.cpp:10416
+        return true;
+      if (T1.isFloatTy() && T2.isFloatTy())
+        return true;
----------------
The float and double cases are covered by T1 == T2?


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

https://reviews.llvm.org/D155884



More information about the llvm-commits mailing list