[llvm-commits] [llvm-gcc-4.2] r43411 - /llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Bill Wendling
isanbard at gmail.com
Fri Oct 26 16:31:41 PDT 2007
Author: void
Date: Fri Oct 26 18:31:40 2007
New Revision: 43411
URL: http://llvm.org/viewvc/llvm-project?rev=43411&view=rev
Log:
Reverting r43399 because it doesn't appear to happen with TOT anymore
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp?rev=43411&r1=43410&r2=43411&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp Fri Oct 26 18:31:40 2007
@@ -2541,25 +2541,7 @@
EmitAggregateCopy(DestLoc, LV.Ptr, TREE_TYPE(exp), isVolatile, false,
Alignment);
} else if (!isVolatile && TREE_CODE(TREE_OPERAND(exp, 0))!=RESULT_DECL) {
- // At this point, Alignment is the alignment of the destination
- // pointer. It may not match the alignment of the source pointer. So, we
- // need to make sure that it's has at least its alignment.
- tree new_exp = copy_node(TREE_OPERAND(exp, 1));
- unsigned NewAlignment = expr_align(new_exp) / 8;
- Alignment = (Alignment < NewAlignment) ? Alignment : NewAlignment;
- TYPE_ALIGN(TREE_TYPE(new_exp)) = Alignment;
-
- switch (TREE_CODE(new_exp)) {
- case VAR_DECL:
- case PARM_DECL:
- case RESULT_DECL:
- DECL_ALIGN (new_exp) = Alignment * 8;
- break;
- default:
- break;
- }
-
- Emit(new_exp, LV.Ptr);
+ Emit(TREE_OPERAND(exp, 1), LV.Ptr);
} else {
// Need to do a volatile store into TREE_OPERAND(exp, 1). To do this, we
// emit it into a temporary memory location, then do a volatile copy into
More information about the llvm-commits
mailing list