diff options
author | Nadav Rotem <nrotem@apple.com> | 2012-10-31 21:40:39 +0000 |
---|---|---|
committer | Nadav Rotem <nrotem@apple.com> | 2012-10-31 21:40:39 +0000 |
commit | e57b2cbce652d45ed5516e52ad82991bfa03cfd7 (patch) | |
tree | ebb28b57979f57cddc2f7172f559c5981005ad09 /test/Transforms/LoopVectorize/start-non-zero.ll | |
parent | 0dba9a9a26f45119a82200d1db37b734b3e1bb22 (diff) |
LoopVectorize: Preserve NSW, NUW and IsExact flags.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167174 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/LoopVectorize/start-non-zero.ll')
-rw-r--r-- | test/Transforms/LoopVectorize/start-non-zero.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Transforms/LoopVectorize/start-non-zero.ll b/test/Transforms/LoopVectorize/start-non-zero.ll index 257df05ac0..5aa3bc034d 100644 --- a/test/Transforms/LoopVectorize/start-non-zero.ll +++ b/test/Transforms/LoopVectorize/start-non-zero.ll @@ -4,7 +4,7 @@ target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f3 target triple = "x86_64-apple-macosx10.8.0" ;CHECK: @start_at_nonzero -;CHECK: mul <4 x i32> +;CHECK: mul nuw <4 x i32> ;CHECK: ret i32 define i32 @start_at_nonzero(i32* nocapture %a, i32 %start, i32 %end) nounwind uwtable ssp { entry: @@ -19,7 +19,7 @@ for.body: ; preds = %for.body.lr.ph, %fo %indvars.iv = phi i64 [ %0, %for.body.lr.ph ], [ %indvars.iv.next, %for.body ] %arrayidx = getelementptr inbounds i32* %a, i64 %indvars.iv %1 = load i32* %arrayidx, align 4, !tbaa !0 - %mul = mul nsw i32 %1, 333 + %mul = mul nuw i32 %1, 333 store i32 %mul, i32* %arrayidx, align 4, !tbaa !0 %indvars.iv.next = add i64 %indvars.iv, 1 %2 = trunc i64 %indvars.iv.next to i32 |