[all-commits] [llvm/llvm-project] 180d3f: [MemDep][NFCI] Remove redundant dyn_cast, replace ...

Max Kazantsev via All-commits all-commits at lists.llvm.org
Mon May 30 03:18:22 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 180d3f251d1ad5473705d3f00e6d426b5f8162e6
      https://github.com/llvm/llvm-project/commit/180d3f251d1ad5473705d3f00e6d426b5f8162e6
  Author: Max Kazantsev <mkazantsev at azul.com>
  Date:   2022-05-30 (Mon, 30 May 2022)

  Changed paths:
    M llvm/lib/Analysis/MemoryDependenceAnalysis.cpp

  Log Message:
  -----------
  [MemDep][NFCI] Remove redundant dyn_cast, replace with cast

When `IsLoad` is `true`, we don't need to check if the instruction
is actually a load with dyn_cast. Saves some petty amount of CT.




More information about the All-commits mailing list