[all-commits] [llvm/llvm-project] 33fe89: [DAG][AArch64] Limit preferIncOfAddToSubOfNot unti...
David Green via All-commits
all-commits at lists.llvm.org
Fri Apr 21 10:36:12 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 33fe899ceffa6699904781feae987d23b8fd88ea
https://github.com/llvm/llvm-project/commit/33fe899ceffa6699904781feae987d23b8fd88ea
Author: David Green <david.green at arm.com>
Date: 2023-04-21 (Fri, 21 Apr 2023)
Changed paths:
M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
M llvm/test/CodeGen/AArch64/arm64-vhadd.ll
M llvm/test/CodeGen/AArch64/sve-hadd.ll
Log Message:
-----------
[DAG][AArch64] Limit preferIncOfAddToSubOfNot until after legalization if the node has wrap flags
If the add node has wrap flags then they will be destroyed by converting to
sub/not. The flags can be useful in converting to rhadd, for example, but that
may be required late if the node types need to be legalized. This limits the
preferIncOfAddToSubOfNot fold until after legalize DAG if the node have flags
to allow more folding.
Differential Revision: https://reviews.llvm.org/D148809
More information about the All-commits
mailing list