[all-commits] [llvm/llvm-project] 7e5a73: [MemDep][NFC] Remove duplicating check in `if` and...

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


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7e5a730473a7b2909cc3a4b9198d8418c8146372
      https://github.com/llvm/llvm-project/commit/7e5a730473a7b2909cc3a4b9198d8418c8146372
  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][NFC] Remove duplicating check in `if` and `else` branch

Same check is done whether the condition is true or false. Just hoist
it out of conditional.




More information about the All-commits mailing list