aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/CallGraphUpdater.cpp
diff options
context:
space:
mode:
authorShengchen Kan <shengchen.kan@intel.com>2020-04-15 13:37:46 +0800
committerShengchen Kan <shengchen.kan@intel.com>2020-04-16 09:53:45 +0800
commit322ac2e9173a6fc778f10cf528c676c9159d893f (patch)
tree34af6a93a77742ac1db0ebd39e0cac55555e7748 /llvm/lib/Transforms/Utils/CallGraphUpdater.cpp
parent90a63f6d2d6b8144f0c7cd99232fc27ed10c41fe (diff)
downloadllvm-322ac2e9173a6fc778f10cf528c676c9159d893f.zip
llvm-322ac2e9173a6fc778f10cf528c676c9159d893f.tar.gz
llvm-322ac2e9173a6fc778f10cf528c676c9159d893f.tar.bz2
[X86][MC][NFC] Reduce the parameters of functions in X86MCCodeEmitter(Part I)
Summary: The function in X86MCCodeEmitter has too many parameters to make it look messy, and some parameters are unnecessary. This is the first patch to reduce their parameters. The follwing operations are cheap ``` unsigned Opcode = MI.getOpcode(); const MCInstrDesc &Desc = MCII.get(Opcode); uint64_t TSFlags = Desc.TSFlags; ``` So if we pass a `MCInst`, we don't need to pass `MCInstrDesc`; if we pass a `MCInstrDesc`, we don't need to pass `TSFlags`. Reviewers: craig.topper, MaskRay, pengfei Reviewed By: craig.topper Subscribers: annita.zhang, hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D78180
Diffstat (limited to 'llvm/lib/Transforms/Utils/CallGraphUpdater.cpp')
0 files changed, 0 insertions, 0 deletions