[llvm] [AArch64] Fix a minor issue with AArch64LoopIdiomTransform (PR #78136)
David Sherwood via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 17 06:27:14 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 &&
----------------
david-arm wrote:
Done! Whilst writing it I realised I need to also tighten up the while.body value to only permit the Index. The tests still pass!
https://github.com/llvm/llvm-project/pull/78136
More information about the llvm-commits
mailing list