[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)
commitc419c9f640deeeccc7de8afd84f5d54aa05c7136
tree38899221854c98390b424621941518fa789675e9
parent399fcbea37afc33f9609652e4b085affa9164d83
[InstCombine] add hasOneUse check to add-zext-add fold to prevent increasing instructions

llvm-svn: 315718
llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
llvm/test/Transforms/InstCombine/add.ll