Make shadow frame addresses unique.
This CL makes each virtual register's shadow frame address unique in the LLVM
function. Every shadow frame address (gep instructions) are placed right after
allocas to dominate all their uses.
This reduces the number of emitted gep instructions and the memory footprint.
This may also "help" optimization passes to simplify the detection of addresses
in load/store operations where some transformations may be simplified.
1 file changed