]> granicus.if.org Git - llvm/commit
[InstCombine] add hasOneUse check to add-zext-add fold to prevent increasing instructions
authorSanjay Patel <spatel@rotateright.com>
Fri, 13 Oct 2017 17:47:25 +0000 (17:47 +0000)
committerSanjay Patel <spatel@rotateright.com>
Fri, 13 Oct 2017 17:47:25 +0000 (17:47 +0000)
commita7bbf63f800a8976d3636d5d9f55fbee24f0baf7
tree47e8ffade934c3e058a9483d8f487b9722b0d785
parent5860eabc2fd220ad9d3ade38cfd05091cf18a31a
[InstCombine] add hasOneUse check to add-zext-add fold to prevent increasing instructions

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315718 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineAddSub.cpp
test/Transforms/InstCombine/add.ll