[PATCH] D31407: [PPC] In PPCBoolRetToInt change the bool value to i64 if the target is ppc64

Guozhi Wei via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 27 15:56:09 PDT 2017


Carrot created this revision.
Herald added subscribers: nemanjai, mehdi_amini.

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.


https://reviews.llvm.org/D31407

Files:
  lib/Target/PowerPC/PPC.h
  lib/Target/PowerPC/PPCBoolRetToInt.cpp
  lib/Target/PowerPC/PPCTargetMachine.cpp
  test/CodeGen/PowerPC/pr32442.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31407.93189.patch
Type: text/x-patch
Size: 4968 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170327/369b2140/attachment.bin>


More information about the llvm-commits mailing list