[PATCH] D35003: [MemoryBuiltins] Allow truncation in visitAllocaInst()

Mikael Holmén via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 10 00:02:54 PDT 2017


uabelho updated this revision to Diff 105810.
uabelho added a comment.

Added overflow checks to visitAllocaInst.

To avoid some code duplication I pulled out the CheckedZextOrTrunc lambda from visitCallSite
and made a member function of it.


https://reviews.llvm.org/D35003

Files:
  include/llvm/Analysis/MemoryBuiltins.h
  lib/Analysis/MemoryBuiltins.cpp
  test/Transforms/InstCombine/pr33689_same_bitwidth.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35003.105810.patch
Type: text/x-patch
Size: 5165 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170710/d136e338/attachment.bin>


More information about the llvm-commits mailing list