[all-commits] [llvm/llvm-project] 3a10fe: [Loads] Use more powerful constant folding API

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Oct 22 09:34:19 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3a10fe2d893f3c112663d117a4802aacde3b378a
      https://github.com/llvm/llvm-project/commit/3a10fe2d893f3c112663d117a4802aacde3b378a
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2021-10-22 (Fri, 22 Oct 2021)

  Changed paths:
    M llvm/include/llvm/Analysis/ConstantFolding.h
    M llvm/lib/Analysis/ConstantFolding.cpp
    M llvm/lib/Analysis/Loads.cpp
    M llvm/test/Transforms/InstCombine/load-store-forward.ll

  Log Message:
  -----------
  [Loads] Use more powerful constant folding API

This follows up on D111023 by exporting the generic "load value
from constant at given offset as given type" and using it in the
store to load forwarding code. We now need to make sure that the
load size is smaller than the store size, previously this was
implicitly ensured by ConstantFoldLoadThroughBitcast().

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




More information about the All-commits mailing list