HomePhabricator

AllocaInst should store Align instead of MaybeAlign.

Authored by efriedma on May 15 2020, 1:23 PM.

Description

AllocaInst should store Align instead of MaybeAlign.

Along the lines of D77454 and D79968. Unlike loads and stores, the
default alignment is getPrefTypeAlign, to match the existing handling in
various places, including SelectionDAG and InstCombine.

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