[PATCH] D92203: [ConstantFold] Fold operations to poison if possible

Juneyoung Lee via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 26 21:24:30 PST 2020


aqjune created this revision.
aqjune added reviewers: lebedev.ri, spatel, nikic, reames, efriedma.
Herald added subscribers: llvm-commits, dexonsmith, hiraditya.
Herald added a project: LLVM.
aqjune requested review of this revision.

This patch updates ConstantFold so operations are folded into poison if possible.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D92203

Files:
  llvm/lib/IR/ConstantFold.cpp
  llvm/lib/IR/Constants.cpp
  llvm/test/Transforms/InstSimplify/ConstProp/InsertElement.ll
  llvm/test/Transforms/InstSimplify/ConstProp/poison.ll
  llvm/unittests/IR/ConstantsTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92203.307955.patch
Type: text/x-patch
Size: 12233 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201127/32c3d6e7/attachment.bin>


More information about the llvm-commits mailing list