[SIFoldOperands] Move `isFoldableCopy` into a separate helper, NFC.
authorPierre van Houtryve <pierre.vanhoutryve@amd.com>
Mon, 7 Nov 2022 11:33:43 +0000 (11:33 +0000)
committerPierre van Houtryve <pierre.vanhoutryve@amd.com>
Tue, 8 Nov 2022 07:44:34 +0000 (07:44 +0000)
commit70c781f4b6f4b9aa851dbf950b53569a8f8bd1e8
treecb1a7fb42ad138306c539cc8dca1796512fabccc
parent1c355352c73050881f68b3e2b673dc1c7919b67d
[SIFoldOperands] Move `isFoldableCopy` into a separate helper, NFC.

There was quite a bit of logic there that was just in the middle of core loop. I think it makes it easier to follow when it's split off in a separate helper like the others.

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D137538
llvm/lib/Target/AMDGPU/SIFoldOperands.cpp