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 D31407
[PPC] In PPCBoolRetToInt change the bool value to i64 if the target is ppc64 Carrot on Mar 27 2017, 3:56 PM. Authored by
Details
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.
Diff Detail Event Timeline
Comment Actions The first commit triggered bug pr32608, and was reverted by r299153. Now the bug has been fixed by r304001, so I will try to commit it again. Unfortunately INITIALIZE_TM_PASS has been removed and TargetMachine access mechanism is changed, so I modified the patch to use new mechanism. Please take another look. Comment Actions One inline nit then LGTM. -eric
|
Update?