Skip to content

memset/memcpy analysis/optimizations need improving #824

@llvmbot

Description

@llvmbot
Bugzilla Link 452
Resolution FIXED
Resolved on Apr 22, 2009 04:37
Version trunk
OS All
Depends On llvm/llvm-bugzilla-archive#2058 llvm/llvm-bugzilla-archive#1226 llvm/llvm-bugzilla-archive#1952 llvm/llvm-bugzilla-archive#2059
Reporter LLVM Bugzilla Contributor

Extended Description

Just so this doesn't get lost, I'm filing a "wishlist" item for this.

Date: Wed, 6 Oct 2004 14:25:30 -0500 (CDT)
From: Chris Lattner [email protected]
Subject: memset optimizations

memset currently inhibits multiple optimizations, e.g. memset/load doesn't
get copy-propagated, memset doesn't cause dead stores to die, and memset
inhibits SRA. This should be fixed!

Also: memset(&X, 4) -> store int 0, X iff X is aligned

Also, memset should not kill unaliased loads/stores.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillacode-qualityipoInterprocedural optimizations

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions