diff options
| author | Chris Lattner <sabre@nondot.org> | 2007-10-13 06:35:54 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2007-10-13 06:35:54 +0000 | 
| commit | 5e6fe054a297d211dc5c4a6c32469c3a1a2fdd8b (patch) | |
| tree | 5798c643ca7333eb53623450701f7252496503b2 /llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | |
| parent | d5f857f2e5b0c3c9e0fe0a56f4655d2780e68704 (diff) | |
| download | bcm5719-llvm-5e6fe054a297d211dc5c4a6c32469c3a1a2fdd8b.tar.gz bcm5719-llvm-5e6fe054a297d211dc5c4a6c32469c3a1a2fdd8b.zip  | |
Add a simple optimization to simplify the input to
truncate and truncstore instructions, based on the 
knowledge that they don't demand the top bits.
llvm-svn: 42952
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index d8dc94e84ec..b54af7d2a1c 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -2025,7 +2025,7 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {        // probably means that we need to integrate dag combiner and legalizer        // together.        // We generally can't do this one for long doubles. -      if (ConstantFPSDNode *CFP =dyn_cast<ConstantFPSDNode>(ST->getValue())) { +      if (ConstantFPSDNode *CFP = dyn_cast<ConstantFPSDNode>(ST->getValue())) {          if (CFP->getValueType(0) == MVT::f32) {            Tmp3 = DAG.getConstant((uint32_t)CFP->getValueAPF().                                            convertToAPInt().getZExtValue(),  | 

