[all-commits] [llvm/llvm-project] e862e7: [NFC] Use assert instead of checking the guarantee...

max-azul via All-commits all-commits at lists.llvm.org
Mon Sep 28 21:45:19 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e862e78b63f918c000ce65f9c475730e673a4966
      https://github.com/llvm/llvm-project/commit/e862e78b63f918c000ce65f9c475730e673a4966
  Author: Max Kazantsev <mkazantsev at azul.com>
  Date:   2020-09-29 (Tue, 29 Sep 2020)

  Changed paths:
    M llvm/lib/Transforms/Scalar/IndVarSimplify.cpp

  Log Message:
  -----------
  [NFC] Use assert instead of checking the guaranteed condition

>From preconditions it is known that either A dominates B or
B dominates A. If A does not dominate B, we do not really need
to check it. Assert should be enough. Should save some compile
time.




More information about the All-commits mailing list