HomePhabricator

[SDAG] Add new AssertAlign ISD node.

Authored by hliao on May 24 2020, 8:20 PM.

Description

[SDAG] Add new AssertAlign ISD node.

Summary:

  • AssertAlign node records the guaranteed alignment on its source node, where these alignments are retrieved from alignment attributes in LLVM IR. These tracked alignments could help DAG combining and lowering generating efficient code.
  • In this patch, the basic support of AssertAlign node is added. So far, we only generate AssertAlign nodes on return values from intrinsic calls.
  • Addressing selection in AMDGPU is revised accordingly to capture the new (base + offset) patterns.

Reviewers: arsenm, bogner

Subscribers: jvesely, wdng, nhaehnle, tpr, hiraditya, kerbowa, llvm-commits

Tags: #llvm

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

Details

Committed
hliaoJun 22 2020, 9:51 PM
Differential Revision
D81711: [SDAG] Add new AssertAlign ISD node.
Parents
rG2a3b86c15716: Fix rejects-valid when referencing an implicit operator== from within a…
Branches
Unknown
Tags
Unknown