[llvm] a673206 - [CallSite removal][X86] Remove unneeded use of CallSite. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 10 10:27:52 PDT 2020
Author: Craig Topper
Date: 2020-04-10T10:27:21-07:00
New Revision: a6732069ee220d9871396fd1c848301a1010e07a
URL: https://github.com/llvm/llvm-project/commit/a6732069ee220d9871396fd1c848301a1010e07a
DIFF: https://github.com/llvm/llvm-project/commit/a6732069ee220d9871396fd1c848301a1010e07a.diff
LOG: [CallSite removal][X86] Remove unneeded use of CallSite. NFC
We already have a CallInst, we can just get the calling convention from it.
Added:
Modified:
llvm/lib/Target/X86/X86ISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index e471ccf6595c..1864ccfe0a75 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -38,7 +38,6 @@
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/CodeGen/TargetLowering.h"
#include "llvm/CodeGen/WinEHFuncInfo.h"
-#include "llvm/IR/CallSite.h"
#include "llvm/IR/CallingConv.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DerivedTypes.h"
@@ -3220,8 +3219,7 @@ bool X86TargetLowering::mayBeEmittedAsTailCall(const CallInst *CI) const {
if (!CI->isTailCall())
return false;
- ImmutableCallSite CS(CI);
- CallingConv::ID CalleeCC = CS.getCallingConv();
+ CallingConv::ID CalleeCC = CI->getCallingConv();
if (!mayTailCallThisCC(CalleeCC))
return false;
More information about the llvm-commits
mailing list