[LoopStrengthReduce] Don't neglect the Fixup.Offset in isAMCompletelyFolded().
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>
Wed, 9 Aug 2017 11:27:46 +0000 (11:27 +0000)
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>
Wed, 9 Aug 2017 11:27:46 +0000 (11:27 +0000)
commit5052771af344914dd68dc2e8000837b6a898a941
treee70af2b2971b3afee402b5736afe6f7dd5f51941
parent630fc7b82a1150c87bee48b7ea9a0ec76f89f723
[LoopStrengthReduce]  Don't neglect the Fixup.Offset in isAMCompletelyFolded().

In the recursive call to isAMCompletelyFolded(), the passed offset should be
the sum of F.BaseOffset and Fixup.Offset.

Review: Quentin Colombet.
llvm-svn: 310462
llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp