mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-14 15:17:57 -05:00
shader: Implement CAL inlining function calls
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user