[PATCH] D68008: [Attributor] Use abstract call sites to determine associated arguments

Hideto Ueno via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 7 22:37:02 PST 2019


uenoku added inline comments.


================
Comment at: llvm/lib/Transforms/IPO/Attributor.cpp:179-189
+    for (unsigned u = 0, e = ACS.getNumArgOperands(); u < e; u++) {
+
+      // Test if the underlying call site operand is argument number u of the
+      // callback callee.
+      if (ACS.getCallArgOperandNo(u) != ArgNo)
+        continue;
+
----------------
I couldn't understand this part. Is it sound to return an argument of the callback callee we have found first?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D68008





More information about the llvm-commits mailing list