summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
diff options
context:
space:
mode:
authorGuozhi Wei <carrot@google.com>2017-03-28 22:55:01 +0000
committerGuozhi Wei <carrot@google.com>2017-03-28 22:55:01 +0000
commitf8d40181c9b8ef68d975ba04dfd025cb74042e88 (patch)
tree279ea9dabb24543f27453004f98e3a0f5991bb97 /llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
parenta41a5c29f00b9fa6120f1da2f51b0c90b26e2fbf (diff)
downloadbcm5719-llvm-f8d40181c9b8ef68d975ba04dfd025cb74042e88.tar.gz
bcm5719-llvm-f8d40181c9b8ef68d975ba04dfd025cb74042e88.zip
[PPC] In PPCBoolRetToInt change the bool value to i64 if the target is ppc64
In PPCBoolRetToInt bool value is changed to i32 type. On ppc64 it may introduce an extra zero extension for the return value. This patch changes the integer type to i64 to avoid the zero extension on ppc64. This patch fixed PR32442. Differential Revision: https://reviews.llvm.org/D31407 llvm-svn: 298955
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCTargetMachine.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCTargetMachine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp b/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
index 5d68f32ccc5..298f8ec0bbf 100644
--- a/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
+++ b/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
@@ -323,7 +323,7 @@ TargetPassConfig *PPCTargetMachine::createPassConfig(PassManagerBase &PM) {
void PPCPassConfig::addIRPasses() {
if (TM->getOptLevel() != CodeGenOpt::None)
- addPass(createPPCBoolRetToIntPass());
+ addPass(createPPCBoolRetToIntPass(&getPPCTargetMachine()));
addPass(createAtomicExpandPass(&getPPCTargetMachine()));
// For the BG/Q (or if explicitly requested), add explicit data prefetch
OpenPOWER on IntegriCloud