[all-commits] [llvm/llvm-project] fcfb31: [SROA] Clean up some uses of MaybeAlign in SROA.

Eli Friedman via All-commits all-commits at lists.llvm.org
Wed May 13 11:24:03 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: fcfb3170a776f89dde4de8ee105c99e10660f455
      https://github.com/llvm/llvm-project/commit/fcfb3170a776f89dde4de8ee105c99e10660f455
  Author: Eli Friedman <efriedma at quicinc.com>
  Date:   2020-05-13 (Wed, 13 May 2020)

  Changed paths:
    M llvm/lib/Transforms/Scalar/SROA.cpp

  Log Message:
  -----------
  [SROA] Clean up some uses of MaybeAlign in SROA.

Use Align instead of using MaybeAlign; all the operations in question
have known alignment.

For getSliceAlign() in particular, in the cases where we used to return
None, it would be converted back to an Align by IRBuilder, so there's no
functional change there.

Split off from D77454.

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




More information about the All-commits mailing list