[all-commits] [llvm/llvm-project] 2b98b8: fix bug for useless malloc elimination in CodeGenP...

Ruobing Han via All-commits all-commits at lists.llvm.org
Wed Jul 20 09:30:17 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2b98b8e8fba1f7a7d11d099ecf2ebe1adc55b5aa
      https://github.com/llvm/llvm-project/commit/2b98b8e8fba1f7a7d11d099ecf2ebe1adc55b5aa
  Author: Ruobing Han <hanruobing at gatech.edu>
  Date:   2022-07-20 (Wed, 20 Jul 2022)

  Changed paths:
    M llvm/lib/Transforms/Utils/Local.cpp
    A llvm/test/Transforms/CodeGenPrepare/dead-allocation.ll

  Log Message:
  -----------
  fix bug for useless malloc elimination in CodeGenPrepare

Put AllocationFn check before I->willReturn can allow CodeGenPrepare to remove useless malloc instruction

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




More information about the All-commits mailing list