[all-commits] [llvm/llvm-project] 457dc7: Reland [InstCombine] Infer inbounds for more GEPs ...

aeubanks via All-commits all-commits at lists.llvm.org
Tue Jun 27 09:31:39 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 457dc72fdd2eefe364548e721619cc1951854372
      https://github.com/llvm/llvm-project/commit/457dc72fdd2eefe364548e721619cc1951854372
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2023-06-27 (Tue, 27 Jun 2023)

  Changed paths:
    M clang/test/CodeGenOpenCL/builtins-amdgcn.cl
    M llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
    M llvm/test/Transforms/InstCombine/compare-unescaped.ll
    M llvm/test/Transforms/InstCombine/inbounds-gep.ll
    M llvm/test/Transforms/PhaseOrdering/X86/vec-load-combine.ll
    M llvm/test/Transforms/PhaseOrdering/bitcast-store-branch.ll
    M llvm/test/Transforms/PhaseOrdering/dce-after-argument-promotion-loads.ll

  Log Message:
  -----------
  Reland [InstCombine] Infer inbounds for more GEPs of dereferenceable pointers

Use Value::getPointerDereferenceableBytes() instead of hardcoding dereferenceable only for allocas. Allows us to infer inbounds GEPs for other Values like CallInsts and Arguments.

Fixed clang test broken in initial land.

Reviewed By: nikic

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




More information about the All-commits mailing list