[all-commits] [llvm/llvm-project] dda3b7: [ConstantHoisting] stop rematerializing InsertionPt

Nick Desaulniers via All-commits all-commits at lists.llvm.org
Mon Jul 17 15:01:46 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dda3b70602bcf8e0490fbd38ce8a0a45527a110d
      https://github.com/llvm/llvm-project/commit/dda3b70602bcf8e0490fbd38ce8a0a45527a110d
  Author: Nick Desaulniers <ndesaulniers at google.com>
  Date:   2023-07-17 (Mon, 17 Jul 2023)

  Changed paths:
    M llvm/include/llvm/Transforms/Scalar/ConstantHoisting.h
    M llvm/lib/Transforms/Scalar/ConstantHoisting.cpp

  Log Message:
  -----------
  [ConstantHoisting] stop rematerializing InsertionPt

Reading this code, I noticed that we call findMatInsertPt a lot, for the
same inputs. Calculate it once and save the result.

Reviewed By: MaskRay

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




More information about the All-commits mailing list