[llvm-commits] [llvm] r84174 - /llvm/trunk/lib/Analysis/BasicAliasAnalysis.cpp

Duncan Sands baldrick at free.fr
Thu Oct 15 01:43:44 PDT 2009


Hi Nick,

> +      case Intrinsic::lifetime_start:
> +      case Intrinsic::lifetime_end:
> +      case Intrinsic::invariant_start: {
> +        unsigned PtrSize = cast<ConstantInt>(II->getOperand(1))->getZExtValue();
> +        if (alias(II->getOperand(2), PtrSize, P, Size) == NoAlias)
> +          return NoModRef;
> +      }

did you mean to fall through here?

> +      case Intrinsic::invariant_end: {
> +        unsigned PtrSize = cast<ConstantInt>(II->getOperand(2))->getZExtValue();
> +        if (alias(II->getOperand(3), PtrSize, P, Size) == NoAlias)
> +          return NoModRef;
> +      }

Ciao,

Duncan.



More information about the llvm-commits mailing list