~louis/ubuntu/trusty/clamav/lp799623_fix_logrotate

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/test/Analysis/ScalarEvolution/nsw.ll

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-03-12 11:30:04 UTC
  • mfrom: (0.41.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100312113004-b0fop4bkycszdd0z
Tags: 0.96~rc1+dfsg-0ubuntu1
* New upstream RC - FFE (LP: #537636):
  - Add OfficialDatabaseOnly option to clamav-base.postinst.in
  - Add LocalSocketGroup option to clamav-base.postinst.in
  - Add LocalSocketMode option to clamav-base.postinst.in
  - Add CrossFilesystems option to clamav-base.postinst.in
  - Add ClamukoScannerCount option to clamav-base.postinst.in
  - Add BytecodeSecurity opiton to clamav-base.postinst.in
  - Add DetectionStatsHostID option to clamav-freshclam.postinst.in
  - Add Bytecode option to clamav-freshclam.postinst.in
  - Add MilterSocketGroup option to clamav-milter.postinst.in
  - Add MilterSocketMode option to clamav-milter.postinst.in
  - Add ReportHostname option to clamav-milter.postinst.in
  - Bump libclamav SO version to 6.1.0 in libclamav6.install
  - Drop clamdmon from clamav.examples (no longer shipped by upstream)
  - Drop libclamav.a from libclamav-dev.install (not built by upstream)
  - Update SO version for lintian override for libclamav6
  - Add new Bytecode Testing Tool, usr/bin/clambc, to clamav.install
  - Add build-depends on python and python-setuptools for new test suite
  - Update debian/copyright for the embedded copy of llvm (using the system
    llvm is not currently feasible)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; RUN: opt < %s -analyze -scalar-evolution | grep { -->  {.*,+,.*}<%bb>} | count 8
 
2
 
 
3
; The addrecs in this loop are analyzable only by using nsw information.
 
4
 
 
5
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64"
 
6
 
 
7
define void @foo(double* %p) nounwind {
 
8
entry:
 
9
        %tmp = load double* %p, align 8         ; <double> [#uses=1]
 
10
        %tmp1 = fcmp ogt double %tmp, 2.000000e+00              ; <i1> [#uses=1]
 
11
        br i1 %tmp1, label %bb.nph, label %return
 
12
 
 
13
bb.nph:         ; preds = %entry
 
14
        br label %bb
 
15
 
 
16
bb:             ; preds = %bb1, %bb.nph
 
17
        %i.01 = phi i32 [ %tmp8, %bb1 ], [ 0, %bb.nph ]         ; <i32> [#uses=3]
 
18
        %tmp2 = sext i32 %i.01 to i64           ; <i64> [#uses=1]
 
19
        %tmp3 = getelementptr double* %p, i64 %tmp2             ; <double*> [#uses=1]
 
20
        %tmp4 = load double* %tmp3, align 8             ; <double> [#uses=1]
 
21
        %tmp5 = fmul double %tmp4, 9.200000e+00         ; <double> [#uses=1]
 
22
        %tmp6 = sext i32 %i.01 to i64           ; <i64> [#uses=1]
 
23
        %tmp7 = getelementptr double* %p, i64 %tmp6             ; <double*> [#uses=1]
 
24
        store double %tmp5, double* %tmp7, align 8
 
25
        %tmp8 = add nsw i32 %i.01, 1            ; <i32> [#uses=2]
 
26
        br label %bb1
 
27
 
 
28
bb1:            ; preds = %bb
 
29
        %phitmp = sext i32 %tmp8 to i64         ; <i64> [#uses=1]
 
30
        %tmp9 = getelementptr double* %p, i64 %phitmp           ; <double*> [#uses=1]
 
31
        %tmp10 = load double* %tmp9, align 8            ; <double> [#uses=1]
 
32
        %tmp11 = fcmp ogt double %tmp10, 2.000000e+00           ; <i1> [#uses=1]
 
33
        br i1 %tmp11, label %bb, label %bb1.return_crit_edge
 
34
 
 
35
bb1.return_crit_edge:           ; preds = %bb1
 
36
        br label %return
 
37
 
 
38
return:         ; preds = %bb1.return_crit_edge, %entry
 
39
        ret void
 
40
}