[PATCH] D91722: [DebugInfo] Use variadic debug values to salvage BinOps and GEP instrs with non-const operands

Adrian Prantl via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 1 17:33:58 PST 2021


aprantl accepted this revision.
aprantl added a comment.
This revision is now accepted and ready to land.

I think this looks pretty good. I found on last comment about the function signature of collectOffset, but otherwise this is fine.



================
Comment at: llvm/include/llvm/IR/Instructions.h:1127
+                     SmallDenseMap<Value *, APInt, 8> &VariableOffsets,
+                     APInt &ConstantOffset) const;
   // Methods for support type inquiry through isa, cast, and dyn_cast:
----------------
Any reason why this doesn't just return an Optional<APInt>?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D91722



More information about the llvm-commits mailing list