Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
llvm-epi-0.8
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Roger Ferrer
llvm-epi-0.8
Commits
c8a4e385
Commit
c8a4e385
authored
11 years ago
by
Jakob Stoklund Olesen
Browse files
Options
Downloads
Patches
Plain Diff
Remove dead function.
llvm-svn: 185731
parent
2eb1ae4f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
llvm/include/llvm/CodeGen/MachineInstr.h
+0
-5
0 additions, 5 deletions
llvm/include/llvm/CodeGen/MachineInstr.h
llvm/lib/CodeGen/MachineInstr.cpp
+0
-26
0 additions, 26 deletions
llvm/lib/CodeGen/MachineInstr.cpp
with
0 additions
and
31 deletions
llvm/include/llvm/CodeGen/MachineInstr.h
+
0
−
5
View file @
c8a4e385
...
@@ -908,11 +908,6 @@ public:
...
@@ -908,11 +908,6 @@ public:
bool
isSafeToMove
(
const
TargetInstrInfo
*
TII
,
AliasAnalysis
*
AA
,
bool
isSafeToMove
(
const
TargetInstrInfo
*
TII
,
AliasAnalysis
*
AA
,
bool
&
SawStore
)
const
;
bool
&
SawStore
)
const
;
/// isSafeToReMat - Return true if it's safe to rematerialize the specified
/// instruction which defined the specified register instead of copying it.
bool
isSafeToReMat
(
const
TargetInstrInfo
*
TII
,
AliasAnalysis
*
AA
,
unsigned
DstReg
)
const
;
/// hasOrderedMemoryRef - Return true if this instruction may have an ordered
/// hasOrderedMemoryRef - Return true if this instruction may have an ordered
/// or volatile memory reference, or if the information describing the memory
/// or volatile memory reference, or if the information describing the memory
/// reference is not available. Return false if it is known to have no
/// reference is not available. Return false if it is known to have no
...
...
This diff is collapsed.
Click to expand it.
llvm/lib/CodeGen/MachineInstr.cpp
+
0
−
26
View file @
c8a4e385
...
@@ -1253,32 +1253,6 @@ bool MachineInstr::isSafeToMove(const TargetInstrInfo *TII,
...
@@ -1253,32 +1253,6 @@ bool MachineInstr::isSafeToMove(const TargetInstrInfo *TII,
return
true
;
return
true
;
}
}
/// isSafeToReMat - Return true if it's safe to rematerialize the specified
/// instruction which defined the specified register instead of copying it.
bool
MachineInstr
::
isSafeToReMat
(
const
TargetInstrInfo
*
TII
,
AliasAnalysis
*
AA
,
unsigned
DstReg
)
const
{
bool
SawStore
=
false
;
if
(
!
TII
->
isTriviallyReMaterializable
(
this
,
AA
)
||
!
isSafeToMove
(
TII
,
AA
,
SawStore
))
return
false
;
for
(
unsigned
i
=
0
,
e
=
getNumOperands
();
i
!=
e
;
++
i
)
{
const
MachineOperand
&
MO
=
getOperand
(
i
);
if
(
!
MO
.
isReg
())
continue
;
// FIXME: For now, do not remat any instruction with register operands.
// Later on, we can loosen the restriction is the register operands have
// not been modified between the def and use. Note, this is different from
// MachineSink because the code is no longer in two-address form (at least
// partially).
if
(
MO
.
isUse
())
return
false
;
else
if
(
!
MO
.
isDead
()
&&
MO
.
getReg
()
!=
DstReg
)
return
false
;
}
return
true
;
}
/// hasOrderedMemoryRef - Return true if this instruction may have an ordered
/// hasOrderedMemoryRef - Return true if this instruction may have an ordered
/// or volatile memory reference, or if the information describing the memory
/// or volatile memory reference, or if the information describing the memory
/// reference is not available. Return false if it is known to have no ordered
/// reference is not available. Return false if it is known to have no ordered
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment