[PATCH] D104602: [InstCombine] Use poison constant to represent the result of unreachable instrs

Juneyoung Lee via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 19 23:05:39 PDT 2021


aqjune added inline comments.


================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp:717
+  // Create insertvalue with its don't-care struct value set to poison
+  Constant *V[] = {PoisonValue::get(Result->getType()), Overflow};
   StructType *ST = cast<StructType>(II->getType());
----------------
Oops, this part does not belong to this patch; I'll remove this


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D104602



More information about the llvm-commits mailing list