[llvm-commits] [llvm] r134677 - in /llvm/trunk: lib/Transforms/Scalar/GVN.cpp test/Transforms/GVN/2011-07-07-MatchIntrinsicExtract.ll

Frits van Bommel fvbommel at gmail.com
Thu Jul 7 23:29:46 PDT 2011


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)




More information about the llvm-commits mailing list