[PATCH] D103856: [Attributor] Introduce a helper do deal with constant type mismatches

Johannes Doerfert via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 17 09:00:10 PDT 2021


jdoerfert added inline comments.


================
Comment at: llvm/lib/Transforms/IPO/Attributor.cpp:165
+    return &V;
+  if (isa<UndefValue>(V))
+    return UndefValue::get(&Ty);
----------------
uenoku wrote:
> Probably poison too
PoisonValue inherits from UndefValue, as poison can degenerate to undef. That said, I'll make it explicit to keep it as poison if it was (for the future),


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D103856



More information about the llvm-commits mailing list