mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-20 22:15:46 +00:00
shader: Implement CAL inlining function calls
This commit is contained in:
parent
809a7282a4
commit
db2e9d64aa
24 changed files with 286 additions and 330 deletions
|
@ -10,10 +10,10 @@
|
|||
|
||||
namespace Shader::Optimization {
|
||||
|
||||
void IdentityRemovalPass(IR::Function& function) {
|
||||
void IdentityRemovalPass(IR::Program& program) {
|
||||
std::vector<IR::Inst*> to_invalidate;
|
||||
|
||||
for (IR::Block* const block : function.blocks) {
|
||||
for (IR::Block* const block : program.blocks) {
|
||||
for (auto inst = block->begin(); inst != block->end();) {
|
||||
const size_t num_args{inst->NumArgs()};
|
||||
for (size_t i = 0; i < num_args; ++i) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue