HomePhabricator

[GVN] Properly invalidate ICF cache when we simplify a value

Authored by aeubanks on Thu, Apr 8, 11:44 AM.

Description

[GVN] Properly invalidate ICF cache when we simplify a value

This fixes a "Cached first special instruction is wrong!" assert.

The assert fires because replacing a value with another can cause an
instruction to no longer be "special" to ICF. In this case,
devirtualization happened, turning an indirect call to a
call to a willreturn function which is no longer special.

Reviewed By: nikic, rnk

Differential Revision: https://reviews.llvm.org/D99977

Details

Committed
aeubanksThu, Apr 8, 2:01 PM
Reviewer
nikic
Differential Revision
D99977: [GVN] Properly invalidate ICF cache when we simplify a value
Parents
rGf66e05a720f7: Include `count` in AppleClang toolchains.
Branches
Unknown
Tags
Unknown