Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion llvm/lib/Target/SystemZ/SystemZLongBranch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ static unsigned getInstSizeInBytes(const MachineInstr &MI,
// These do not have a size:
MI.isDebugOrPseudoInstr() || MI.isPosition() || MI.isKill() ||
MI.isImplicitDef() || MI.getOpcode() == TargetOpcode::MEMBARRIER ||
MI.getOpcode() == TargetOpcode::INIT_UNDEF ||
MI.getOpcode() == TargetOpcode::INIT_UNDEF || MI.isFakeUse() ||
// These have a size that may be zero:
MI.isInlineAsm() || MI.getOpcode() == SystemZ::STACKMAP ||
MI.getOpcode() == SystemZ::PATCHPOINT ||
Expand Down
14 changes: 14 additions & 0 deletions llvm/test/CodeGen/SystemZ/fake-use-size.ll
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
; RUN: llc -O0 < %s -mtriple=s390x-linux-gnu 2>&1 | FileCheck %s

;; Tests that we can handle FAKE_USE instructions, emitting a comment for them
;; in the resulting assembly.

; CHECK: .type idd,@function
; CHECK: # %bb.0:
; CHECK-NEXT: # fake_use:

define double @idd(double %d) {
entry:
notail call void (...) @llvm.fake.use(double %d)
ret double %d
}
Loading