[all-commits] [llvm/llvm-project] 7af8d5: [X86] Use 64-bit version of source register in Low...
topperc via All-commits
all-commits at lists.llvm.org
Sun Oct 27 21:12:34 PDT 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 7af8d5267b3cf2a41044b04b918db1ae7a8ef32f
https://github.com/llvm/llvm-project/commit/7af8d5267b3cf2a41044b04b918db1ae7a8ef32f
Author: Craig Topper <craig.topper at gmail.com>
Date: 2019-10-27 (Sun, 27 Oct 2019)
Changed paths:
M llvm/lib/Target/X86/X86MCInstLower.cpp
M llvm/test/CodeGen/X86/xray-custom-log.ll
M llvm/test/CodeGen/X86/xray-typed-event-log.ll
Log Message:
-----------
[X86] Use 64-bit version of source register in LowerPATCHABLE_EVENT_CALL and LowerPATCHABLE_TYPED_EVENT_CALL
Summary:
The PATCHABLE_EVENT_CALL uses i32 in the intrinsic. This
results in the register allocator picking a 32-bit register. We
need to use the 64-bit register when forming the MOV64rr
instructions. Otherwise we print illegal assembly in the text
output.
I think prior to this it was impossible for SrcReg to be equal
to DstReg so the NOP code was not reachable.
While there use Register instead of unsigned.
Also add a FIXME for what looks like a bug.
Reviewers: dberris
Reviewed By: dberris
Subscribers: hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D69365
More information about the All-commits
mailing list