vchuravy / loops.jl Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
function f(cond)
for ...
If cond
cond & true # Could maybe be moved, but tricky since we need to reconstruct the branch.
else if I > 5
cond & true # Can't be moved
end
end
It may be easier to do if cond
as a separate loop-unswitch pass. And for now just punt on this in the context of LICM.
Memory operations are only eligible to be hoisted if they are proven to not alias any memory written to within the loops.
This may also require per argument memory effects.
cc: @aviatesk
The biggest known-unkown is how to work with multiple loops in one function.
extract_loopinfo
finds all loops at all levels, but for LICM we also need the nesting order so that we can work on the innermost loop first.
Secondly we need to maintain the correctness of LoopInfo itself under CFG manipulations.
So maybe we need to separate LoopInfo and Loop as two separate structs, the former representing the loop nests within the function.
Line 149 in 9329e2e
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.