[all-commits] [llvm/llvm-project] 55815b: [Value] Look through inttoptr (add ..) in accumula...

Florian Hahn via All-commits all-commits at lists.llvm.org
Thu Jan 30 12:59:00 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 55815b621b3a8f56a36c93229de1356e325a136f
      https://github.com/llvm/llvm-project/commit/55815b621b3a8f56a36c93229de1356e325a136f
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2025-01-30 (Thu, 30 Jan 2025)

  Changed paths:
    M llvm/include/llvm/IR/Value.h
    M llvm/lib/Analysis/ConstantFolding.cpp
    M llvm/lib/IR/Value.cpp
    M llvm/test/Transforms/InstSimplify/constant-fold-inttoptr-add.ll

  Log Message:
  -----------
  [Value] Look through inttoptr (add ..) in accumulateConstantOffsets (#124981)

Look through inttoptr (add (ptrtoint P), C) when accumulating offsets.

Adds a missing fold after
https://github.com/llvm/llvm-project/pull/123518

Alive2 for the tests with changes: https://alive2.llvm.org/ce/z/VvPrzv

PR: https://github.com/llvm/llvm-project/pull/124981



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list