[PATCH] D140404: Patch for dbg variable instrinsics to point towards cloned values in JumpThreading

Nuno Lopes via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 20 10:48:15 PST 2022


nlopes added inline comments.


================
Comment at: llvm/lib/Transforms/Utils/SSAUpdater.cpp:221
+  else
+    NewVal = UndefValue::get(I->getType());
+  DbgValue->replaceVariableLocationOp(I, NewVal);
----------------
Please use PoisonValue as placeholder whenever possible. We are trying to get rid of undef in LLVM.
Thank you!


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D140404



More information about the llvm-commits mailing list