Giter VIP home page Giter VIP logo

Comments (13)

DianQK avatar DianQK commented on June 22, 2024 2

yeah, could you put up a quick PR to disable it, gating it behind unsound MIR opts?

I will do it today. :)

from rust.

Nilstrieb avatar Nilstrieb commented on June 22, 2024 2

I think disabling the entire pass should have a very small impact, it's not like this is the LLVM instcombine pass :D. So that makes more sense, it's usually how we do it for less important MIR opt passes.

from rust.

RalfJung avatar RalfJung commented on June 22, 2024 1

#124156 landed so the soundness bug is fixed by disabling the affected optimization. Thanks @DianQK for the quick fix. :)

from rust.

RalfJung avatar RalfJung commented on June 22, 2024

Cc @rust-lang/wg-mir-opt

from rust.

Nilstrieb avatar Nilstrieb commented on June 22, 2024

does it make sense to quickly throw up a PR disabling it to leave more time for fixing it properly and thoroughly?

from rust.

DianQK avatar DianQK commented on June 22, 2024

does it make sense to quickly throw up a PR disabling it to leave more time for fixing it properly and thoroughly?

I like this: #124122 (comment).
I think that disabling some transforms where miscompilation might occur is feasible in #124122.

from rust.

Nilstrieb avatar Nilstrieb commented on June 22, 2024

yeah, could you put up a quick PR to disable it, gating it behind unsound MIR opts?

from rust.

DianQK avatar DianQK commented on June 22, 2024

For me, but it's more appropriate to disable unsigned and signed conversions in #124122. But might this require a longer review? I'm not sure, but at least the conversions that are retained should be clear.
@oli-obk Do you have any suggestions?

from rust.

DianQK avatar DianQK commented on June 22, 2024

For me, but it's more appropriate to disable unsigned and signed conversions in #124122.

This is just the usual operation on LLVM: disabling certain conversions, rather than disabling the entire Pass. Of course, compared to LLVM's passes, the passes in MIR-opt are much smaller.

from rust.

apiraino avatar apiraino commented on June 22, 2024

WG-prioritization assigning priority (Zulip discussion).

@rustbot label -I-prioritize +P-critical

from rust.

DianQK avatar DianQK commented on June 22, 2024

yeah, could you put up a quick PR to disable it, gating it behind unsound MIR opts?

I've rethought this scenario, and it's appropriate to add unsound opts. Because this pass is mostly all in #120614. :)

from rust.

DianQK avatar DianQK commented on June 22, 2024

I caused a P-critical issue for the first time. :p

from rust.

RalfJung avatar RalfJung commented on June 22, 2024

mir-opts work has a pretty high chance of doing that. Unfortunately we haven't yet figured out how to build correct-by-construction optimization passes outside of full-blown theorem provers...

from rust.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.