HomePhabricator

[AArch64][GlobalISel] Select G_ADD_LOW into a MOVaddr pseudo.

Authored by aemerson on Jun 9 2020, 3:14 PM.

Description

[AArch64][GlobalISel] Select G_ADD_LOW into a MOVaddr pseudo.

This ensures that we match SelectionDAG behaviour by waiting until the expand
pseudos pass to generate ADRP + ADD pairs. Doing this at selection time for the
G_ADD_LOW is fine because by the time we get to selecting the G_ADD_LOW,
previous attempts to fold it into loads/stores must have failed.

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