[PATCH] D104124: [IR] Simplify createReplacementInstr

2021-06-23 Thread Jay Foad via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG157473a58f02: [IR] Simplify createReplacementInstr (authored by foad). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D104124/new/ https://reviews.llvm.org/D1

[PATCH] D104124: [IR] Simplify createReplacementInstr

2021-06-18 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl accepted this revision. yaxunl added a comment. This revision is now accepted and ready to land. LGTM. Thanks. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D104124/new/ https://reviews.llvm.org/D104124 __

[PATCH] D104124: [IR] Simplify createReplacementInstr

2021-06-11 Thread Jay Foad via Phabricator via cfe-commits
foad added reviewers: yaxunl, robertlytton. foad added a comment. Given how simple createReplacementInstr is now, this does make me wonder if it was really worth creating ReplaceConstant.{cpp,h} in the first place. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://revie

[PATCH] D104124: [IR] Simplify createReplacementInstr

2021-06-11 Thread Jay Foad via Phabricator via cfe-commits
foad created this revision. Herald added subscribers: dexonsmith, hiraditya. foad requested review of this revision. Herald added projects: clang, LLVM. Herald added subscribers: llvm-commits, cfe-commits. NFCI, although the test change shows that ConstantExpr::getAsInstruction is better than the