Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
llvm-epi
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
Show more breadcrumbs
Roger Ferrer
llvm-epi
Commits
db3bcc99
"git@repo.hca.bsc.es:rferrer/llvm-epi-0.8.git" did not exist on "51836bbc8236cddc4d26cfb0436a0c6352193461"
Commit
db3bcc99
authored
14 years ago
by
Eric Christopher
Browse files
Options
Downloads
Patches
Plain Diff
Handle a wider arrangement of loads.
llvm-svn: 116284
parent
f6c73c46
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
llvm/lib/Target/ARM/ARMFastISel.cpp
+16
-0
16 additions, 0 deletions
llvm/lib/Target/ARM/ARMFastISel.cpp
with
16 additions
and
0 deletions
llvm/lib/Target/ARM/ARMFastISel.cpp
+
16
−
0
View file @
db3bcc99
...
...
@@ -588,6 +588,22 @@ bool ARMFastISel::ARMComputeRegOffset(const Value *Obj, unsigned &Reg,
switch
(
Opcode
)
{
default:
break
;
case
Instruction
::
BitCast
:
{
// Look through bitcasts.
return
ARMComputeRegOffset
(
U
->
getOperand
(
0
),
Reg
,
Offset
);
}
case
Instruction
::
IntToPtr
:
{
// Look past no-op inttoptrs.
if
(
TLI
.
getValueType
(
U
->
getOperand
(
0
)
->
getType
())
==
TLI
.
getPointerTy
())
return
ARMComputeRegOffset
(
U
->
getOperand
(
0
),
Reg
,
Offset
);
break
;
}
case
Instruction
::
PtrToInt
:
{
// Look past no-op ptrtoints.
if
(
TLI
.
getValueType
(
U
->
getType
())
==
TLI
.
getPointerTy
())
return
ARMComputeRegOffset
(
U
->
getOperand
(
0
),
Reg
,
Offset
);
break
;
}
case
Instruction
::
Alloca
:
{
// Don't handle dynamic allocas.
assert
(
!
FuncInfo
.
StaticAllocaMap
.
count
(
cast
<
AllocaInst
>
(
Obj
))
&&
...
...
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