Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tic
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyuanbo
tic
Commits
621337d5
Commit
621337d5
authored
Oct 16, 2017
by
Tianqi Chen
Committed by
GitHub
Oct 16, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARITH] More caninical simplfy (#561)
* [ARITH] More caninical simplfy * [DEBUG] Use HalideIR with trace logging
parent
9e8bae25
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
HalideIR
+1
-1
Makefile
+1
-1
src/arithmetic/canonical.cc
+7
-0
No files found.
HalideIR
@
d91cf97d
Subproject commit
cb3c025d5b91ab994b063a85bc935fc364d8f491
Subproject commit
d91cf97d5d6cd2b47ec408bb08e978b88cbf6ab7
Makefile
View file @
621337d5
...
@@ -225,7 +225,7 @@ lib/libtvm_web_runtime.js: lib/libtvm_web_runtime.bc
...
@@ -225,7 +225,7 @@ lib/libtvm_web_runtime.js: lib/libtvm_web_runtime.bc
$(LIB_HALIDEIR)
:
LIBHALIDEIR
$(LIB_HALIDEIR)
:
LIBHALIDEIR
LIBHALIDEIR
:
LIBHALIDEIR
:
+
cd
HalideIR
;
make lib/libHalideIR.a
;
cd
$(ROOTDIR)
+
cd
HalideIR
;
make lib/libHalideIR.a
DMLC_CORE_PATH
=
../dmlc-core
;
cd
$(ROOTDIR)
cpplint
:
cpplint
:
python dmlc-core/scripts/lint.py topi cpp topi/include
;
python dmlc-core/scripts/lint.py topi cpp topi/include
;
...
...
src/arithmetic/canonical.cc
View file @
621337d5
...
@@ -302,6 +302,13 @@ class Canonical::Internal : public IRMutator {
...
@@ -302,6 +302,13 @@ class Canonical::Internal : public IRMutator {
Expr
Mutate_
(
const
Mod
*
op
,
const
Expr
&
e
)
final
{
Expr
Mutate_
(
const
Mod
*
op
,
const
Expr
&
e
)
final
{
return
Binary
(
op
,
e
);
return
Binary
(
op
,
e
);
}
}
Expr
Mutate_
(
const
And
*
op
,
const
Expr
&
e
)
final
{
Expr
expr
=
IRMutator
::
Mutate_
(
op
,
e
);
op
=
expr
.
as
<
And
>
();
if
(
is_one
(
op
->
a
))
return
op
->
b
;
if
(
is_one
(
op
->
b
))
return
op
->
a
;
return
expr
;
}
// Call
// Call
Expr
Mutate_
(
const
Call
*
op
,
const
Expr
&
e
)
final
{
Expr
Mutate_
(
const
Call
*
op
,
const
Expr
&
e
)
final
{
if
(
!
op
->
is_pure
())
{
if
(
!
op
->
is_pure
())
{
...
...
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