[PATCH] D66561: [X86] Remove encoding information from the TAILJMP instructions that are lowered by MCInstLowering. Fix LowerPATCHABLE_TAIL_CALL to also convert them to regular JMP/JCC instructions

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 21 14:53:04 PDT 2019


craig.topper created this revision.
craig.topper added reviewers: spatel, RKSimon, hans, dberris.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.

There are 5 instructions here that are converted from TAILJMP opcodes to regular JMP/JCC opcodes during MCInstLowering. So normally there encoding information isn't used. The exception being when XRay wraps them in PATCHABLE_TAIL_CALL.

This patch fixes PATCHABLE_TAIL_CALL to do the same opcode conversion as the regular lowering patch. Then removes the encoding information.


https://reviews.llvm.org/D66561

Files:
  llvm/lib/Target/X86/X86InstrControl.td
  llvm/lib/Target/X86/X86MCInstLower.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66561.216490.patch
Type: text/x-patch
Size: 4474 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190821/cece6300/attachment.bin>


More information about the llvm-commits mailing list