[InstCombine] Move InstCombineWorklist to Utils to allow reuse (NFC).
authorFlorian Hahn <flo@fhahn.com>
Wed, 22 Sep 2021 07:19:01 +0000 (08:19 +0100)
committerFlorian Hahn <flo@fhahn.com>
Wed, 22 Sep 2021 07:47:21 +0000 (08:47 +0100)
commite08a5dc86f1ff868a61e74bfea413889a3d5915f
treeb0d9343c7a89a84035335b55f6d493b5f9292037
parentabbb0f901ad85aaa06780deefbda9c0ee0c2c7a2
[InstCombine] Move InstCombineWorklist to Utils to allow reuse (NFC).

InstCombine's worklist can be re-used by other passes like
VectorCombine. Move it to llvm/Transform/Utils and rename it to
InstructionWorklist.

Reviewed By: lebedev.ri

Differential Revision: https://reviews.llvm.org/D110181
llvm/include/llvm/Transforms/InstCombine/InstCombine.h
llvm/include/llvm/Transforms/InstCombine/InstCombiner.h
llvm/include/llvm/Transforms/Utils/InstructionWorklist.h [moved from llvm/include/llvm/Transforms/InstCombine/InstCombineWorklist.h with 82% similarity]
llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
llvm/lib/Transforms/InstCombine/InstCombineInternal.h
llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
llvm/lib/Transforms/InstCombine/InstructionCombining.cpp