[CodeGen] Improve speed of ComplexDeinterleaving pass
authorIgor Kirillov <igor.kirillov@arm.com>
Wed, 2 Aug 2023 16:26:52 +0000 (16:26 +0000)
committerTobias Hieta <tobias@hieta.se>
Wed, 9 Aug 2023 06:55:37 +0000 (08:55 +0200)
commit700fa26ccd9dd3a02f8c49d33656d44d118f2836
tree522c8455f1721e48906aeda914c38af6951544cd
parentf8468c316fbe2c559a346de212cb7ad6ee1507a8
[CodeGen] Improve speed of ComplexDeinterleaving pass

Cache all results of running `identifyNode`, even those that do not identify
potential complex operations. This patch prevents ComplexDeinterleaving pass
from repeatedly trying to identify Nodes for the same pair of instructions.

Fixes https://github.com/llvm/llvm-project/issues/64379

Differential Revision: https://reviews.llvm.org/D156916

(cherry picked from commit 46b2ad0224d3c9a9cc299211213e2cf677f5a78c)
llvm/lib/CodeGen/ComplexDeinterleavingPass.cpp