summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo
diff options
context:
space:
mode:
authorJames Molloy <james.molloy@arm.com>2016-08-22 17:40:23 +0000
committerJames Molloy <james.molloy@arm.com>2016-08-22 17:40:23 +0000
commit353052698a4ad37d790211f977e353a4a130112d (patch)
treecdb9a5a38455b0b45bda17b801c4ad49159b953c /llvm/test/DebugInfo
parent179c18d3382ac24e0314505f4528496201bdc351 (diff)
downloadbcm5719-llvm-353052698a4ad37d790211f977e353a4a130112d.tar.gz
bcm5719-llvm-353052698a4ad37d790211f977e353a4a130112d.zip
[SimplifyCFG] Rewrite SinkThenElseCodeToEnd
The new version has several advantages: 1) IMSHO it's more readable and neater 2) It handles loads and stores properly 3) It can handle any number of incoming blocks rather than just two. I'll be taking advantage of this in a followup patch. With this change we can now finally sink load-modify-store idioms such as: if (a) return *b += 3; else return *b += 4; => %z = load i32, i32* %y %.sink = select i1 %a, i32 5, i32 7 %b = add i32 %z, %.sink store i32 %b, i32* %y ret i32 %b When this works for switches it'll be even more powerful. Round 4. This time we should handle all instructions correctly, and not replace any operands that need to be constant with variables. This was really hard to determine safely, so the helper function should be put into the Instruction API. I'll do that as a followup. llvm-svn: 279443
Diffstat (limited to 'llvm/test/DebugInfo')
-rw-r--r--llvm/test/DebugInfo/ARM/single-constant-use-preserves-dbgloc.ll3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/test/DebugInfo/ARM/single-constant-use-preserves-dbgloc.ll b/llvm/test/DebugInfo/ARM/single-constant-use-preserves-dbgloc.ll
index a992ce3bf85..e22614388b8 100644
--- a/llvm/test/DebugInfo/ARM/single-constant-use-preserves-dbgloc.ll
+++ b/llvm/test/DebugInfo/ARM/single-constant-use-preserves-dbgloc.ll
@@ -9,8 +9,9 @@
; return -1;
; }
+; CHECK: mvnlt
; CHECK: .loc 1 6 7
-; CHECK: mvn
+; CHECK: strlt
target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
target triple = "armv7--linux-gnueabihf"
OpenPOWER on IntegriCloud