[all-commits] [llvm/llvm-project] 305fcc: [LoopIdiomRecognize] Merge a conditional operator ...

Craig Topper via All-commits all-commits at lists.llvm.org
Sun Dec 6 15:23:51 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 305fcc91225b5c8fa840e8d94d01af1f70bc5445
      https://github.com/llvm/llvm-project/commit/305fcc91225b5c8fa840e8d94d01af1f70bc5445
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2020-12-06 (Sun, 06 Dec 2020)

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

  Log Message:
  -----------
  [LoopIdiomRecognize] Merge a conditional operator with an earlier if and remove an extra temporary variable. NFC

The CountPrev variable was only used to forward a value from
the if statement to the conditional operator under the same
condition.

While there move some variable declarations to their first
assignment.




More information about the All-commits mailing list