projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4e6003
)
Forgot a check.
author
Evan Cheng
<evan.cheng@apple.com>
Mon, 7 May 2007 21:36:06 +0000
(21:36 +0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Mon, 7 May 2007 21:36:06 +0000
(21:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36910
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index e21655112149c6ecbdad9c7fb6a6a7a56a7903c7..290d621cf0edafce91fdf421ce06cfca10d9957e 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@
-3428,7
+3428,7
@@
SDOperand DAGCombiner::visitSTORE(SDNode *N) {
MVT::ValueType SVT = Value.getOperand(0).getValueType();
unsigned OrigAlign = TLI.getTargetMachine().getTargetData()->
getPrefTypeAlignment(getTypeForValueType(SVT));
- if (Align <= OrigAlign)
+ if (Align <= OrigAlign
&& TLI.isOperationLegal(ISD::STORE, SVT)
)
return DAG.getStore(Chain, Value.getOperand(0), Ptr, ST->getSrcValue(),
ST->getSrcValueOffset());
}