[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

Reid Spencer reid at x10sys.com
Wed Apr 4 17:54:05 PDT 2007


On Wed, 2007-04-04 at 17:37 -0700, Chris Lattner wrote:
> > Implement the llvm.bit.part_select.iN.iN.iN overloaded intrinsic.
> 
> Urr?  This is obviously incorrect.  I'd much rather have the code  
> generator assert and die on an unsupported intrinsic than to  
> miscompile it silently.

Okay, but you DID approve this in the plan.

> 
> -Chris
> 
> >
> > ---
> > Diffs of the changes:  (+5 -0)
> >
> >  SelectionDAGISel.cpp |    5 +++++
> >  1 files changed, 5 insertions(+)
> >
> >
> > Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
> > diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.402  
> > llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.403
> > --- llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.402	Wed  
> > Apr  4 16:14:49 2007
> > +++ llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp	Wed Apr  4  
> > 18:48:25 2007
> > @@ -2438,6 +2438,11 @@
> >      DAG.setRoot(Tmp.getValue(1));
> >      return 0;
> >    }
> > +  case Intrinsic::bit_part_select: {
> > +    MVT::ValueType Ty = getValue(I.getOperand(1)).getValueType();
> > +    setValue(&I, DAG.getTargetConstant(0, Ty));
> > +    return 0;
> > +  }
> >    case Intrinsic::bswap:
> >      setValue(&I, DAG.getNode(ISD::BSWAP,
> >                               getValue(I.getOperand(1)).getValueType 
> > (),
> >
> >
> >
> > _______________________________________________
> > llvm-commits mailing list
> > llvm-commits at cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20070404/47dd4646/attachment.sig>


More information about the llvm-commits mailing list