[PATCH 2/2] R600/SI: Use a ComplexPattern for MUBUF stores

Matt Arsenault Matthew.Arsenault at amd.com
Wed Jun 18 16:27:20 PDT 2014


On 06/18/2014 04:10 PM, Tom Stellard wrote:
> +  if (CurDAG->isBaseWithConstantOffset(Addr)) {
> +    ConstantSDNode *C1 = cast<ConstantSDNode>(N1);
> +
> +    if (C1 && isUInt<12>(C1->getZExtValue())) {
You either meant to use dyn_cast, or the C1 check is unneccessary



More information about the llvm-commits mailing list