[PATCH] D77453: [GlobalISel] Simplify G_ADD when it has (0-X) on the LHS or RHS
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 5 10:08:32 PDT 2020
arsenm added inline comments.
================
Comment at: llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp:1634
+ std::tie(SubLHS, SubRHS) = MatchInfo;
+ Builder.buildSub(MI.getOperand(0).getReg(), SubLHS, SubRHS);
+ MI.eraseFromParent();
----------------
Should this preserve any flags?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D77453/new/
https://reviews.llvm.org/D77453
More information about the llvm-commits
mailing list