[llvm-commits] [dragonegg] r115780 - /dragonegg/trunk/llvm-convert.cpp
Duncan Sands
baldrick at free.fr
Wed Oct 6 05:21:53 PDT 2010
Author: baldrick
Date: Wed Oct 6 07:21:53 2010
New Revision: 115780
URL: http://llvm.org/viewvc/llvm-project?rev=115780&view=rev
Log:
Port commit 108360 (johannes) from llvm-gcc:
Revert 46726. The problem it was solving has since been
fixed a better way, and it had bad performance side effects.
PR 5995.
Modified:
dragonegg/trunk/llvm-convert.cpp
Modified: dragonegg/trunk/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/llvm-convert.cpp?rev=115780&r1=115779&r2=115780&view=diff
==============================================================================
--- dragonegg/trunk/llvm-convert.cpp (original)
+++ dragonegg/trunk/llvm-convert.cpp Wed Oct 6 07:21:53 2010
@@ -2265,13 +2265,6 @@
// TODO: Arrange for Volatile to already be set in the LValue.
const Type *Ty = ConvertType(TREE_TYPE(exp));
unsigned Alignment = LV.getAlignment();
- if (TREE_CODE(exp) == COMPONENT_REF)
- if (const StructType *STy =
- dyn_cast<StructType>(ConvertType(TREE_TYPE(TREE_OPERAND(exp, 0)))))
- if (STy->isPacked())
- // Packed struct members use 1 byte alignment
- Alignment = 1;
-
if (!LV.isBitfield()) {
// Scalar value: emit a load.
More information about the llvm-commits
mailing list