name mangling - What does the GCC function suffix .constprop mean? -
looking @ disassembly of c++ program, see functions _z41__static_initialization_and_destruction_0ii.constprop.221
. constprop
mean in case? appears similar in appearance isra suffix (and combined, e.g. .isra.124.constprop.226
), means else.
from source code comments i've read - indicate functions have been cloned during optimization.
edit: may answer, maybe not.
simple constant propagation
this file implements constant propagation , merging. looks instructions involving constant operands , replaces them constant value instead of instruction. example:
add i32 1, 2
becomes
i32 3
note: pass has habit of making definitions dead. thought to run die (dead instruction elimination) pass sometime after running pass.
source
gcc name-mangling
No comments:
Post a Comment