mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 02:24:22 +00:00
Teach regular and fast isel to set dead flags on unused implicit defs
on calls and similar instructions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106353 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -549,6 +549,15 @@ public:
|
||||
return FoundNode;
|
||||
}
|
||||
|
||||
/// getFlaggedUser - If this node has a flag value with a user, return
|
||||
/// the user (there is at most one). Otherwise return NULL.
|
||||
SDNode *getFlaggedUser() const {
|
||||
for (use_iterator UI = use_begin(), UE = use_end(); UI != UE; ++UI)
|
||||
if (UI.getUse().get().getValueType() == MVT::Flag)
|
||||
return *UI;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/// getNumValues - Return the number of values defined/returned by this
|
||||
/// operator.
|
||||
///
|
||||
|
Reference in New Issue
Block a user