diff options
author | Guozhi Wei <carrot@google.com> | 2017-03-28 22:55:01 +0000 |
---|---|---|
committer | Guozhi Wei <carrot@google.com> | 2017-03-28 22:55:01 +0000 |
commit | f8d40181c9b8ef68d975ba04dfd025cb74042e88 (patch) | |
tree | 279ea9dabb24543f27453004f98e3a0f5991bb97 /llvm/lib/Target/PowerPC/PPC.h | |
parent | a41a5c29f00b9fa6120f1da2f51b0c90b26e2fbf (diff) | |
download | bcm5719-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/PPC.h')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPC.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPC.h b/llvm/lib/Target/PowerPC/PPC.h index 38ae62b2675..23077637388 100644 --- a/llvm/lib/Target/PowerPC/PPC.h +++ b/llvm/lib/Target/PowerPC/PPC.h @@ -44,7 +44,7 @@ namespace llvm { FunctionPass *createPPCQPXLoadSplatPass(); FunctionPass *createPPCISelDag(PPCTargetMachine &TM); FunctionPass *createPPCTLSDynamicCallPass(); - FunctionPass *createPPCBoolRetToIntPass(); + FunctionPass *createPPCBoolRetToIntPass(PPCTargetMachine *TM); FunctionPass *createPPCExpandISELPass(); void LowerPPCMachineInstrToMCInst(const MachineInstr *MI, MCInst &OutMI, AsmPrinter &AP, bool isDarwin); |