Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
18d68780
Commit
18d68780
authored
Oct 08, 2014
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #183 from undingen/isAlloc
Fix isAllocCall check
parents
84bda3fd
1296ca93
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
10 deletions
+4
-10
src/codegen/opt/aa.cpp
src/codegen/opt/aa.cpp
+0
-7
src/codegen/opt/util.cpp
src/codegen/opt/util.cpp
+2
-2
src/codegen/opt/util.h
src/codegen/opt/util.h
+2
-1
No files found.
src/codegen/opt/aa.cpp
View file @
18d68780
...
@@ -212,13 +212,6 @@ public:
...
@@ -212,13 +212,6 @@ public:
if
(
isAllocCall
(
F
->
getName
()))
if
(
isAllocCall
(
F
->
getName
()))
return
NoAlias
;
return
NoAlias
;
// if (F->getName() == "malloc")
// return NoAlias;
//
// if (F->getName() == "_ZN6pyston2gc4Heap10allocSmallEmPPNS0_5BlockES4_") {
// return NoAlias;
//}
if
(
F
->
getName
()
==
"_ZN6pyston2gc13runCollectionEv"
)
{
if
(
F
->
getName
()
==
"_ZN6pyston2gc13runCollectionEv"
)
{
assert
(
0
);
assert
(
0
);
return
NoAlias
;
return
NoAlias
;
...
...
src/codegen/opt/util.cpp
View file @
18d68780
...
@@ -20,11 +20,11 @@
...
@@ -20,11 +20,11 @@
namespace
pyston
{
namespace
pyston
{
bool
isAllocCall
(
const
std
::
string
&
name
)
{
bool
isAllocCall
(
const
llvm
::
StringRef
name
)
{
if
(
name
==
"malloc"
)
if
(
name
==
"malloc"
)
return
true
;
return
true
;
if
(
name
==
"_ZN6pyston2gc4Heap10allocSmallEm
PPNS0_5BlockES4_
"
)
if
(
name
==
"_ZN6pyston2gc4Heap10allocSmallEm
i
"
)
return
true
;
return
true
;
return
false
;
return
false
;
...
...
src/codegen/opt/util.h
View file @
18d68780
...
@@ -19,11 +19,12 @@
...
@@ -19,11 +19,12 @@
namespace
llvm
{
namespace
llvm
{
class
CallInst
;
class
CallInst
;
class
StringRef
;
}
}
namespace
pyston
{
namespace
pyston
{
bool
isAllocCall
(
const
std
::
string
&
name
);
bool
isAllocCall
(
const
llvm
::
StringRef
name
);
bool
isAllocCall
(
const
llvm
::
CallInst
*
CI
);
bool
isAllocCall
(
const
llvm
::
CallInst
*
CI
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment