[llvm] [FastIsel] Get the right register type for call instruction (PR #164565)
Luo Yuanke via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 22 03:50:08 PDT 2025
================
@@ -1977,8 +1977,13 @@ SDValue SelectionDAGBuilder::getValueImpl(const Value *V) {
if (const Instruction *Inst = dyn_cast<Instruction>(V)) {
Register InReg = FuncInfo.InitializeRegForValue(Inst);
+ std::optional<CallingConv::ID> CallConv;
+ auto *CI = dyn_cast<CallInst>(Inst);
----------------
LuoYuanke wrote:
Do you mean CallBase can cover `invoke`, `callbr` instructions which also have cconv, but CallInst only cover `call` instruction?
https://github.com/llvm/llvm-project/pull/164565
More information about the llvm-commits
mailing list