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
25dd4a2d
Commit
25dd4a2d
authored
16 years ago
by
Evan Cheng
Browse files
Options
Downloads
Patches
Plain Diff
Commit CodeGenPrepare.cpp changes which was accidentially left out of 56526.
llvm-svn: 56549
parent
1f58ec64
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp
+2
-19
2 additions, 19 deletions
llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp
with
2 additions
and
19 deletions
llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp
+
2
−
19
View file @
25dd4a2d
...
@@ -927,23 +927,6 @@ bool CodeGenPrepare::OptimizeLoadStoreInst(Instruction *LdStInst, Value *Addr,
...
@@ -927,23 +927,6 @@ bool CodeGenPrepare::OptimizeLoadStoreInst(Instruction *LdStInst, Value *Addr,
return
true
;
return
true
;
}
}
/// hasInlineAsmMemConstraint - Return true if the inline asm instruction being
/// processed uses a memory 'm' constraint.
static
bool
hasInlineAsmMemConstraint
(
std
::
vector
<
InlineAsm
::
ConstraintInfo
>
&
CInfos
,
const
TargetLowering
*
TLI
)
{
for
(
unsigned
i
=
0
,
e
=
CInfos
.
size
();
i
!=
e
;
++
i
)
{
InlineAsm
::
ConstraintInfo
&
CI
=
CInfos
[
i
];
for
(
unsigned
j
=
0
,
ee
=
CI
.
Codes
.
size
();
j
!=
ee
;
++
j
)
{
TargetLowering
::
ConstraintType
CType
=
TLI
->
getConstraintType
(
CI
.
Codes
[
j
]);
if
(
CType
==
TargetLowering
::
C_Memory
)
return
true
;
}
}
return
false
;
}
/// OptimizeInlineAsmInst - If there are any memory operands, use
/// OptimizeInlineAsmInst - If there are any memory operands, use
/// OptimizeLoadStoreInt to sink their address computing into the block when
/// OptimizeLoadStoreInt to sink their address computing into the block when
/// possible / profitable.
/// possible / profitable.
...
@@ -980,8 +963,8 @@ bool CodeGenPrepare::OptimizeInlineAsmInst(Instruction *I, CallSite CS,
...
@@ -980,8 +963,8 @@ bool CodeGenPrepare::OptimizeInlineAsmInst(Instruction *I, CallSite CS,
}
}
// Compute the constraint code and ConstraintType to use.
// Compute the constraint code and ConstraintType to use.
bool
hasMemory
=
hasInlineAsmMemConstraint
(
Constraint
Info
s
,
TLI
);
TLI
->
ComputeConstraintToUse
(
Op
Info
,
SDValue
(),
TLI
->
ComputeConstraintToUse
(
OpInfo
,
SDValue
(),
has
Memory
);
OpInfo
.
ConstraintType
==
TargetLowering
::
C_
Memory
);
if
(
OpInfo
.
ConstraintType
==
TargetLowering
::
C_Memory
&&
if
(
OpInfo
.
ConstraintType
==
TargetLowering
::
C_Memory
&&
OpInfo
.
isIndirect
)
{
OpInfo
.
isIndirect
)
{
...
...
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