[LSR] Fix incorrect check in 73cd3d4391ad47ae7
authorDavid Green <david.green@arm.com>
Wed, 22 Feb 2023 23:42:21 +0000 (23:42 +0000)
committerDavid Green <david.green@arm.com>
Wed, 22 Feb 2023 23:42:21 +0000 (23:42 +0000)
commit74b67e53c638fae6542372681cc181f1f4e23f12
tree86e7bdb8507799d7db42013e29b56beeaf6ac92b
parent42ecceb76bfad21acc589cae0f25110f28006c3a
[LSR] Fix incorrect check in 73cd3d4391ad47ae7

I missed that the test needed a icelake-server cpu to fail, and left a testing
"false &&" in the if condition. Hopefully this is now the correct fix.
llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
llvm/test/CodeGen/X86/lsr-addrecloops.ll