OSDN Git Service

[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)
commit6b7f46e721a63aac7916167ea353a46896394883
tree6e0f8f78b97c8e6b3c0468fd4b27c4363d9efab5
parent50a24fa5b1d06071fbf23ecf7a2a4441a4df3e08
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@258653 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/Utils/Local.h
lib/Transforms/InstCombine/InstructionCombining.cpp
lib/Transforms/Scalar/SCCP.cpp
lib/Transforms/Utils/Local.cpp