[all-commits] [llvm/llvm-project] e96dda: [MemoryBuiltins] Avoid comparing against Type::get...

Alexander Richardson via All-commits all-commits at lists.llvm.org
Fri Dec 9 06:01:06 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e96ddad85ca03ddd76a7b0571771709fb1fd1b53
      https://github.com/llvm/llvm-project/commit/e96ddad85ca03ddd76a7b0571771709fb1fd1b53
  Author: Alex Richardson <alexrichardson at google.com>
  Date:   2022-12-09 (Fri, 09 Dec 2022)

  Changed paths:
    M llvm/lib/Analysis/MemoryBuiltins.cpp
    A llvm/test/Transforms/InstCombine/malloc-free-addrspace.ll

  Log Message:
  -----------
  [MemoryBuiltins] Avoid comparing against Type::getInt8PtrTy(0)

This does not make sense with opaque pointers, and also caused issues for
CHERI/Morello where hardcoding address-space zero prevented optimization.

Downstream change: https://git.morello-project.org/morello/llvm-project/-/merge_requests/180
Co-authored-by: Silviu Baranga <silviu.baranga at arm.com>

Reviewed By: lebedev.ri

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




More information about the All-commits mailing list