[llvm-commits] [PATCH] Fix missing PPCTargetLowering::CanLowerReturn

Hal Finkel hfinkel at anl.gov
Tue Oct 11 21:31:49 PDT 2011


The PowerPC backend was missing an implementation of the CanLowerReturn
function. This would cause code generation to crash when, for example,
provided a function with a vector return type that did not correspond to
one of the vector registers. The provided patch seems to fix that
problem (I essentially copied the few lines of implementation from the
X86 backend, hopefully that was a reasonable thing to do). I've included
a test case.

 -Hal

-- 
Hal Finkel
Postdoctoral Appointee
Leadership Computing Facility
Argonne National Laboratory
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm_ppc_clr-20101011.diff
Type: text/x-patch
Size: 2828 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20111011/f46ced15/attachment.bin>


More information about the llvm-commits mailing list