[PATCH] D104997: [WIP][AMDGPU] Deduce attributes with the Attributor

Johannes Doerfert via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 27 15:11:09 PDT 2021


jdoerfert added inline comments.


================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp:133
+      }
+    }
+  }
----------------
There should be at least a todo. We should actually look at all call sites and if that succeeds we can propagate information just fine. Address taken doesn't need to be a bad thing per se.


================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp:206
+    A.checkForAllInstructions(CheckAddrSpaceCasts, *this,
+                              {Instruction::AddrSpaceCast});
+
----------------
I imagine we need to walk all instructions and look at all operands here, no?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D104997



More information about the llvm-commits mailing list