Displaying 2 results from an estimated 2 matches for "selectinstr".
Did you mean:
selectinst
2016 Mar 09
2
[CodeGen] PeepholeOptimizer: optimizing condition dependent instrunctions
...1581 // MI is deleted.
01582 LocalMIs.erase(MI);
01583 Changed = true;
01584 continue;
01585 }
01586
01587 if (MI->isConditionalBranch() && optimizeCondBranch(MI)) {
01588 Changed = true;
01589 continue;
01590 }
CmpInstr, SelectInstr and CondBranch are processed separately. It's assumed that CmpInstr and SelectInstr are deleted but CondBranch is not.
In fact CmpInstr is always connected to SelectInstr or CondBranch or both of them. So if such connection exists it should be processed as a whole.
For example, there are cases...
2016 Mar 10
2
[CodeGen] PeepholeOptimizer: optimizing condition dependent instrunctions
...1581 // MI is deleted.
01582 LocalMIs.erase(MI);
01583 Changed = true;
01584 continue;
01585 }
01586
01587 if (MI->isConditionalBranch() && optimizeCondBranch(MI)) {
01588 Changed = true;
01589 continue;
01590 }
CmpInstr, SelectInstr and CondBranch are processed separately. It's assumed that CmpInstr and SelectInstr are deleted but CondBranch is not.
In fact CmpInstr is always connected to SelectInstr or CondBranch or both of them. So if such connection exists it should be processed as a whole.
This code allows you to do t...