OSDN Git Service

[PowerPC] set optimization level in SelectionDAGISel
authorHiroshi Inoue <inouehrs@jp.ibm.com>
Tue, 27 Jun 2017 04:52:17 +0000 (04:52 +0000)
committerHiroshi Inoue <inouehrs@jp.ibm.com>
Tue, 27 Jun 2017 04:52:17 +0000 (04:52 +0000)
commit1d9383cd84947290cdda9aea2f3bf63b09f9a65d
treebe4edb5f0880d0bd167e57e18cf5b06d0cee9f89
parent64cca8fa27a320339b7bf69a2c364fea7322b3a3
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306367 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPC.h
lib/Target/PowerPC/PPCISelDAGToDAG.cpp
lib/Target/PowerPC/PPCTargetMachine.cpp
test/CodeGen/PowerPC/anon_aggr.ll
test/CodeGen/PowerPC/floatPSA.ll
test/CodeGen/PowerPC/ppc64-align-long-double.ll
test/CodeGen/PowerPC/tls.ll