Skip to content

Missed Optimization: memcpy(a,b,sizeof(*a)) is slower than *a = *b #6846

Closed
@danielsn

Description

@danielsn

In branch https://github.com/danielsn/rmc/tree/test-use-memcpy-in-hook

cd tests/kani/Refs 
kani main.rs

If you run with the HEAD of the branch, the test is very slow; if you run with one commit before HEAD, its fast. The only change is to emit memcpy(a,b,sizeof(*a)) vs*a = *b.

Metadata

Metadata

Assignees

No one assigned

    Labels

    awsBugs or features of importance to AWS CBMC usersaws-highpending merge

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions