[LoopIdiomRecognize] Merge a conditional operator with an earlier if and remove an...
authorCraig Topper <craig.topper@sifive.com>
Sun, 6 Dec 2020 19:44:22 +0000 (11:44 -0800)
committerCraig Topper <craig.topper@sifive.com>
Sun, 6 Dec 2020 23:23:18 +0000 (15:23 -0800)
commit305fcc91225b5c8fa840e8d94d01af1f70bc5445
tree9ee25fd41cf1ade56f2fd5c393f34a199f516a3d
parent6785ca01248ce271dfff16e03cce82f649fa14f7
[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.
llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp