[PATCH] D138469: [LoongArch] Use tablegen size for getInstSizeInBytes

Xiaodong Liu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 21 19:28:30 PST 2022


XiaodongLoong created this revision.
Herald added a subscriber: hiraditya.
Herald added a project: All.
XiaodongLoong requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Correct the pseudo atomic instruction size for branch
relaxation and branch folding passes.

Inspired by D118175 <https://reviews.llvm.org/D118175>, D118009 <https://reviews.llvm.org/D118009> and D117970 <https://reviews.llvm.org/D117970>.

Change-Id: I012f8cda0428da054f0f2a7785bc849bb6ef0ec3


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D138469

Files:
  llvm/lib/Target/LoongArch/LoongArchInstrInfo.cpp
  llvm/lib/Target/LoongArch/LoongArchInstrInfo.td
  llvm/unittests/Target/LoongArch/CMakeLists.txt
  llvm/unittests/Target/LoongArch/InstSizes.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138469.477050.patch
Type: text/x-patch
Size: 8028 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221122/cb200884/attachment.bin>


More information about the llvm-commits mailing list