[llvm-commits] [llvm-gcc-4.2] r50307 - /llvm-gcc-4.2/trunk/gcc/config/rs6000/llvm-rs6000.cpp
Dale Johannesen
dalej at apple.com
Fri Apr 25 18:36:00 PDT 2008
Author: johannes
Date: Fri Apr 25 20:35:59 2008
New Revision: 50307
URL: http://llvm.org/viewvc/llvm-project?rev=50307&view=rev
Log:
do not look at Packed bit when deciding whether to
pass a single-elt struct as the type of the element.
Modified:
llvm-gcc-4.2/trunk/gcc/config/rs6000/llvm-rs6000.cpp
Modified: llvm-gcc-4.2/trunk/gcc/config/rs6000/llvm-rs6000.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/rs6000/llvm-rs6000.cpp?rev=50307&r1=50306&r2=50307&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/config/rs6000/llvm-rs6000.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/config/rs6000/llvm-rs6000.cpp Fri Apr 25 20:35:59 2008
@@ -398,7 +398,7 @@
// ppc32 passes aggregates by copying, either in int registers or on the
// stack.
const StructType *STy = dyn_cast<StructType>(Ty);
- if (!STy || STy->isPacked()) return true;
+ if (!STy) return true;
// A struct containing only a float, double or vector field, possibly with
// some zero-length fields as well, must be passed as the field type.
@@ -429,7 +429,7 @@
return false;
const StructType *STy = dyn_cast<StructType>(Ty);
- if (!STy || STy->isPacked()) return false;
+ if (!STy) return false;
// A struct containing only a float, double or Altivec field, possibly with
// some zero-length fields as well, must be passed as the field type.
More information about the llvm-commits
mailing list