summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/PowerPC/tls.ll
diff options
context:
space:
mode:
authorHiroshi Inoue <inouehrs@jp.ibm.com>2017-06-27 04:52:17 +0000
committerHiroshi Inoue <inouehrs@jp.ibm.com>2017-06-27 04:52:17 +0000
commit5102028f63b585bab42b2641bc9fcce71bb6ca99 (patch)
tree53c0a87d96609d44a6cb6fb09d46385c08a439f6 /llvm/test/CodeGen/PowerPC/tls.ll
parent53b82b3df96f3cfba2027522a172ac9fcc65dcda (diff)
downloadbcm5719-llvm-5102028f63b585bab42b2641bc9fcce71bb6ca99.tar.gz
bcm5719-llvm-5102028f63b585bab42b2641bc9fcce71bb6ca99.zip
[PowerPC] set optimization level in SelectionDAGISel
PowerPC backend does not pass the current optimization level to SelectionDAGISel and so SelectionDAGISel works with the default optimization level regardless of the current optimization level. This patch makes the PowerPC backend set the optimization level correctly. Differential Revision: https://reviews.llvm.org/D34615 llvm-svn: 306367
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/tls.ll')
-rw-r--r--llvm/test/CodeGen/PowerPC/tls.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/PowerPC/tls.ll b/llvm/test/CodeGen/PowerPC/tls.ll
index 55df71b5376..63f498c1662 100644
--- a/llvm/test/CodeGen/PowerPC/tls.ll
+++ b/llvm/test/CodeGen/PowerPC/tls.ll
@@ -11,8 +11,8 @@ target triple = "powerpc64-unknown-linux-gnu"
define i32 @localexec() nounwind {
entry:
;OPT0: addis [[REG1:[0-9]+]], 13, a@tprel@ha
-;OPT0-NEXT: li [[REG2:[0-9]+]], 42
;OPT0-NEXT: addi [[REG1]], [[REG1]], a@tprel@l
+;OPT0-NEXT: li [[REG2:[0-9]+]], 42
;OPT0: stw [[REG2]], 0([[REG1]])
;OPT1: addis [[REG1:[0-9]+]], 13, a@tprel@ha
;OPT1-NEXT: li [[REG2:[0-9]+]], 42
OpenPOWER on IntegriCloud