[PATCH] D116886: [M68k] Instruction selection to choose neg x when mul x -1 (Fix issue 48588)
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 10 03:35:57 PST 2022
RKSimon added inline comments.
================
Comment at: llvm/lib/Target/M68k/M68kISelDAGToDAG.cpp:327
+ if (llvm::isNullConstant(U->getOperand(0)))
+ return false;
+ }
----------------
(style) Add a break - even though its the last case in the switch() its good practice to use them.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D116886/new/
https://reviews.llvm.org/D116886
More information about the llvm-commits
mailing list