Théo Degioanni

Results 51 comments of Théo Degioanni

I think I need to spend some time looking at what arcilator does before the backend because I fail to understand the point of doing all this lol

Hey! I designed the mem2reg pass. Fabian’s analysis is correct, the pointer must only be used by promotable operations for any promotion to happen. In particular, returning the pointer is...

I would recommend a dedicated type yes. I think you may technically not absolutely need it because the MemorySlot would model it already, but I think it would be better...

Unfortunately I could reproduce even using nightly. ```js { "name": "testparcel", "version": "1.0.0", "license": "MIT", "private": true, "dependencies": { "parcel": "^2.8.4-nightly.0" }, "@parcel/transformer-css": { "cssModules": true } } ```

I'm not sure I understand. What is the proper way to use a CSS module? Simply renaming the CSS file to `test.module.css` and removing the global setting yields the same...

Right, I see. What is the proper way to do CSS tree shaking when using CSS directly from HTML? I have no CSS-related JavaScript in my projects.

Ah I see! Thank you. I think this is still a bug though, as Parcel should at least not crash but emit an error.

Maybe it's been fixed, I'll try to get some time to check.

Mem2Reg is most useful when you have branching control flow or interaction between dialects, hence why its effect is conceptually simple here. I don't think it makes sense to use...

You need to invoke the SROA pass before Mem2Reg. Mem2Reg only handles promotion while SROA handles destructuring.