Comments (2)
If this is implemented, it should be a toggle. The ordering of switch cases will change codegen, the "correct" ordering is going by what's in the body of the switch and then outputting which cases reach that part of the body.
from m2c.
This issue isn't about reordering switch cases (that would be very dangerous indeed, and we haven't found a compiler for which we need to do that), but rather about the indexing of // switch N
comments, so that it goes N = 0, 1, ... and doesn't skip numbers.
from m2c.
Related Issues (20)
- Add EABI support HOT 1
- Add option to specify initial value for saved registers
- Sometimes missing args in function calls with more than 4 parameters
- Investigate if/when `BinaryOp.negated()` should swap left/right for better matches
- Handle f64 values in phis
- Incorrect reordering of function calls & memory reads
- Common PPC instructions HOT 2
- GCC `if (thing - 12 < 3U)` pattern
- Internal error on empty glabel HOT 2
- Typedef ordering issue. HOT 2
- Better handling of instructions on 64bit variables HOT 1
- s32 typedef should be long instead of int in PPC code HOT 2
- PPC instruction stwu not parsing: maybe related to negative numbers HOT 2
- Recognize MWCCEPPC 1.3.2-specific `_savegpr_*`/`_restgpr_*` runtime helpers
- Arithmetic expression being dropped HOT 7
- Redundant typedef causes m2c to hang
- PSP Allegrex Extended Instructions HOT 2
- Should non-ASCII contents in .asci blocks be rejected? HOT 4
- [BUG] Missing Stack Variable HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from m2c.