From 27e5142309946ca12c633b265673af0c24684427 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 13 Aug 2005 07:42:01 +0000 Subject: [PATCH] Ooops, don't forget to clear this. The real inner loop is now: .LBB_foo_3: ; no_exit.1 lfd f2, 0(r9) lfd f3, 8(r9) fmul f4, f1, f2 fmadd f4, f0, f3, f4 stfd f4, 8(r9) fmul f3, f1, f3 fmsub f2, f0, f2, f3 stfd f2, 0(r9) addi r9, r9, 16 addi r8, r8, 1 cmpw cr0, r8, r4 ble .LBB_foo_3 ; no_exit.1 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22782 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/LoopStrengthReduce.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/lib/Transforms/Scalar/LoopStrengthReduce.cpp index 41d2134488d..9143f56d4d7 100644 --- a/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/lib/Transforms/Scalar/LoopStrengthReduce.cpp @@ -690,6 +690,7 @@ RemoveCommonExpressionsFromUseBases(std::vector &Uses) { Uses[i].Base = Zero; else Uses[i].Base = SCEVAddExpr::get(SubExprs); + SubExprs.clear(); } return Result; -- 2.34.1