[InstCombine, SCCP] Consolidate code used to remove instructions
authorDavid Majnemer <david.majnemer@gmail.com>
Sun, 24 Jan 2016 05:26:18 +0000 (05:26 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Sun, 24 Jan 2016 05:26:18 +0000 (05:26 +0000)
commit35c46d3e0b587d3d8f2d9daf533e3566e841b943
tree43957709f2f58260fc1667b08d8479beed096d88
parent7e15272bbe2e3e3fa3698d8f8fbfa8f3c9557292
[InstCombine, SCCP] Consolidate code used to remove instructions

InstCombine and SCCP both want to remove dead code in a very particular
way but using identical means to do so.  Share the code between the two.

No functionality change is intended.

llvm-svn: 258653
llvm/include/llvm/Transforms/Utils/Local.h
llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
llvm/lib/Transforms/Scalar/SCCP.cpp
llvm/lib/Transforms/Utils/Local.cpp