[TypePromotionPass] Don't treat phi's as ToPromote
authorDavid Green <david.green@arm.com>
Tue, 13 Sep 2022 07:57:15 +0000 (08:57 +0100)
committerDavid Green <david.green@arm.com>
Tue, 13 Sep 2022 07:57:15 +0000 (08:57 +0100)
commitf124e59b2e515d65e0b941826467e08de5ba97b0
treef4ab5f8c0e5b8025f5ea70bc0add1808974cda1b
parentfbfe1db4a95a73ed6a0767db0ab7d449fc03405e
[TypePromotionPass] Don't treat phi's as ToPromote

This attempts to stop the type promotion pass transforming where it is
not profitable, by not marking PhiNodes as ToPromote and being more
aggressive about pulling extends out of loops.

Differential Revision: https://reviews.llvm.org/D133203
llvm/lib/CodeGen/TypePromotion.cpp
llvm/test/CodeGen/AArch64/typepromotion-cost.ll