[PATCH] D61560: [TargetLowering] Handle multi depth GEPs w/ inline asm constraints
Nick Desaulniers via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 8 10:34:44 PDT 2019
nickdesaulniers marked 2 inline comments as done.
nickdesaulniers added inline comments.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp:3524
+ ConstraintLetter != 's') {
+ Ops.push_back(DAG.getTargetConstant(Offset + C->getSExtValue(),
SDLoc(C), MVT::i64));
----------------
t.p.northover wrote:
> With the above suggestion, I think you'll need to make sure this extension happens properly. You probably do anyway -- the code below for combining constants can do strange things to the high bits if pointer size is less than i64.
Thanks for the review. I'm sorry, but I don't fully understand this comment. Can you please provide more information or clarification? Are you suggesting maybe returning early if `Offset + C->getSExtValue()` is greater than `INT_MAX`?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D61560/new/
https://reviews.llvm.org/D61560
More information about the llvm-commits
mailing list