[PATCH] D150862: [RISCV][CodeGenPrepare] Select the optimal base offset for GEPs with large offset
Serguei Katkov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 6 19:24:59 PDT 2023
skatkov added inline comments.
================
Comment at: llvm/lib/CodeGen/CodeGenPrepare.cpp:6091
+ // will be inserted to the entry block.
+ NewBaseInsertBB = &F.getEntryBlock();
NewBaseInsertPt = NewBaseInsertBB->getFirstInsertionPt();
----------------
If the only reason of introducing F argument to get entry block, why not using
GEP->getFunction()->getEntryBlock();
?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D150862/new/
https://reviews.llvm.org/D150862
More information about the llvm-commits
mailing list