[llvm] [AArch64] Fix a minor issue with AArch64LoopIdiomTransform (PR #78136)

Sjoerd Meijer via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 17 03:55:53 PST 2024


================
@@ -370,8 +370,9 @@ bool AArch64LoopIdiomTransform::recognizeByteCompare() {
       // same as the end value (MaxLen) so we permit either. Otherwise for any
       // other value defined outside the loop we only allow values that are the
       // same as the exit value for while.body.
-      if (WhileCondVal != Index && WhileCondVal != MaxLen &&
----------------
sjoerdmeijer wrote:

Nit: do we need to update the comment above?

https://github.com/llvm/llvm-project/pull/78136


More information about the llvm-commits mailing list