Fix jit/pass/peephole.cpp fuse addmm (#26357)
Summary:
Fix https://github.com/pytorch/pytorch/issues/26328. Reversing the order of inserting nodes. Previously the IR graph looks like
```
graph(%0 : Float(3, 3)):
%5 : Float(3, 3) = aten::addmm(%0, %0, %0, %6, %6)
%6 : int = prim::Constant[value=1]()
return (%5)
```
where %6 is used before created. Now
```
graph(%0 : Float(3, 3)):
%5 : int = prim::Constant[value=1]()
%6 : Float(3, 3) = aten::addmm(%0, %0, %0, %5, %5)
return (%6)
```
Pull Request resolved: https://github.com/pytorch/pytorch/pull/26357
Reviewed By: hl475
Differential Revision: D17463945
Pulled By: houseroad
fbshipit-source-id: 4f483c2bc004a4a88f0976a7b37d7994d97ba41a