[llvm-commits] [llvm] r134677 - in /llvm/trunk: lib/Transforms/Scalar/GVN.cpp test/Transforms/GVN/2011-07-07-MatchIntrinsicExtract.ll
Lang Hames
lhames at gmail.com
Fri Jul 8 17:49:21 PDT 2011
Added in r134777. Thanks for the suggestion!
- Lang.
On Fri, Jul 8, 2011 at 4:29 PM, Frits van Bommel <fvbommel at gmail.com> wrote:
> On 8 July 2011 03:50, Lang Hames <lhames at gmail.com> wrote:
> > + switch (I->getIntrinsicID()) {
> > + case Intrinsic::uadd_with_overflow:
> > + e.opcode = Instruction::Add;
> > + break;
> > + case Intrinsic::usub_with_overflow:
> > + e.opcode = Instruction::Sub;
> > + break;
> > + case Intrinsic::umul_with_overflow:
> > + e.opcode = Instruction::Mul;
> > + break;
> > + default:
> > + break;
> > + }
>
> Still no signed variants? They should be as easy as duplicating each
> case line and changing a single character on each of the three new
> lines ('s/::u/::s/'). (Plus some extra texts, of course)
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110709/9db37d9f/attachment.html>
More information about the llvm-commits
mailing list