diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2013-09-30 15:39:48 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2013-09-30 15:39:48 +0000 |
commit | adb412daa41aef94a9f724dfd1ade9f579bb3a84 (patch) | |
tree | e70185344707fc03fefd43f8b39fefb4b8005d8c /test/Transforms | |
parent | 5a17a462cdba1b894cdd618798596076ed79c9ac (diff) | |
download | external_llvm-adb412daa41aef94a9f724dfd1ade9f579bb3a84.zip external_llvm-adb412daa41aef94a9f724dfd1ade9f579bb3a84.tar.gz external_llvm-adb412daa41aef94a9f724dfd1ade9f579bb3a84.tar.bz2 |
IRBuilder: Add RAII objects to reset insertion points or fast math flags.
Inspired by the object from the SLPVectorizer. This found a minor bug in the
debug loc restoration in the vectorizer where the location of a following
instruction was attached instead of the location from the original instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191673 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms')
-rw-r--r-- | test/Transforms/SLPVectorizer/X86/debug_info.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Transforms/SLPVectorizer/X86/debug_info.ll b/test/Transforms/SLPVectorizer/X86/debug_info.ll index b3a6f6d..97704d0 100644 --- a/test/Transforms/SLPVectorizer/X86/debug_info.ll +++ b/test/Transforms/SLPVectorizer/X86/debug_info.ll @@ -19,7 +19,7 @@ target triple = "x86_64-apple-macosx10.7.0" ;CHECK: store <2 x double> {{.*}}, !dbg ![[LOC2:[0-9]+]] ;CHECK: ret ;CHECK: ![[LOC]] = metadata !{i32 4, i32 0, -;CHECK: ![[LOC2]] = metadata !{i32 8, i32 0, +;CHECK: ![[LOC2]] = metadata !{i32 7, i32 0, define i32 @depth(double* nocapture %A, i32 %m) #0 { entry: |