[PATCH] D131642: [LegalizeTypes][NFC] Use getConstantOperandVal instead of cast constant getvalue.

WangLian via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 11 20:07:25 PDT 2022


Jimerlife added a comment.

Only use `getConstantOperandVal(Num)` API instead of `cast<ConstantSDNode>(N->getOperand(Num))->getZExtValue()`. If We already have `Idx`, still keeping origin cast form. Thanks your suggestions @craig.topper @RKSimon.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D131642/new/

https://reviews.llvm.org/D131642



More information about the llvm-commits mailing list