https://bugs.llvm.org/show_bug.cgi?id=44004
Bug ID: 44004
Summary: Broken logic to get operand for target of call MI in
constructCallSiteEntryDIEs()
Product: tools
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: llc
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
constructCallSiteEntryDIEs() tries to gather some information about the target
of a call by looking at the operand 0 of a call MachineInstr with the
assumption that it corresponds to the operand holding the target of the call.
However this is at least not the case on Arm where the target is encoded as
operand 2 of the tBL MachineInstr, with the first 2 operands used to encode the
predicate and the implicit use of CPSR.
I looked at making a patch but could not find how to find the operand holding
the target of the call in a target independent way. Method getBranchDestBlock()
of TargetInstrInfo seemed promising to get some of the information but is not
implement on at least Arm and Hexagon targets.
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs