[llvm-commits] [llvm] r139649 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
Eli Friedman
eli.friedman at gmail.com
Tue Sep 13 15:19:59 PDT 2011
Author: efriedma
Date: Tue Sep 13 17:19:59 2011
New Revision: 139649
URL: http://llvm.org/viewvc/llvm-project?rev=139649&view=rev
Log:
Fix check for unaligned load/store so it doesn't catch over-aligned load/store.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp?rev=139649&r1=139648&r2=139649&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp Tue Sep 13 17:19:59 2011
@@ -3402,7 +3402,7 @@
EVT VT = EVT::getEVT(I.getType());
- if (I.getAlignment() * 8 != VT.getSizeInBits())
+ if (I.getAlignment() * 8 < VT.getSizeInBits())
report_fatal_error("Cannot generate unaligned atomic load");
SDValue L =
@@ -3432,7 +3432,7 @@
EVT VT = EVT::getEVT(I.getValueOperand()->getType());
- if (I.getAlignment() * 8 != VT.getSizeInBits())
+ if (I.getAlignment() * 8 < VT.getSizeInBits())
report_fatal_error("Cannot generate unaligned atomic store");
if (TLI.getInsertFencesForAtomic())
More information about the llvm-commits
mailing list