[all-commits] [llvm/llvm-project] 710596: [ConstantFolding] Accept offset in ConstantFoldLoa...

Nikita Popov via All-commits all-commits at lists.llvm.org
Sat Oct 23 08:59:55 PDT 2021


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

  Changed paths:
    M llvm/include/llvm/Analysis/ConstantFolding.h
    M llvm/lib/Analysis/ConstantFolding.cpp
    M llvm/lib/Transforms/Utils/VNCoercion.cpp

  Log Message:
  -----------
  [ConstantFolding] Accept offset in ConstantFoldLoadFromConstPtr (NFCI)

As this API is now internally offset-based, we can accept a starting
offset and remove the need to create a temporary bitcast+gep
sequence to perform an offset load. The API now mirrors the
ConstantFoldLoadFromConst() API.




More information about the All-commits mailing list