[all-commits] [llvm/llvm-project] 736db2: [Loads] Require Align in isSafeToLoadUnconditional...

Nikita Popov via All-commits all-commits at lists.llvm.org
Mon May 18 11:51:02 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 736db2f710367946452f3f705010ada4227352b0
      https://github.com/llvm/llvm-project/commit/736db2f710367946452f3f705010ada4227352b0
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2020-05-18 (Mon, 18 May 2020)

  Changed paths:
    M llvm/include/llvm/Analysis/Loads.h
    M llvm/lib/Analysis/Loads.cpp
    M llvm/lib/Transforms/Scalar/SROA.cpp
    M llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp

  Log Message:
  -----------
  [Loads] Require Align in isSafeToLoadUnconditionally() (NFC)

Now that load/store have required alignment, accept Align here.
This also avoids uses of getPointerElementType(), which is
incompatible with opaque pointers.




More information about the All-commits mailing list