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 can happen 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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo