[PATCH] D88687: [InstCombine] visitTrunc - pass through undefs for trunc(shift(trunc/ext(x),c)) patterns

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 13 05:38:17 PDT 2020


RKSimon updated this revision to Diff 297832.
RKSimon edited the summary of this revision.
RKSimon added a comment.

Reworked with a Constant::mergeUndefsWith helper as suggested by @lebedev.ri


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D88687

Files:
  llvm/include/llvm/IR/Constant.h
  llvm/lib/IR/Constants.cpp
  llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
  llvm/test/Transforms/InstCombine/cast.ll
  llvm/test/Transforms/InstCombine/trunc-shift-trunc.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88687.297832.patch
Type: text/x-patch
Size: 6053 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201013/e01c4ba0/attachment.bin>


More information about the llvm-commits mailing list