[PATCH] D70564: [GlobalISel] LegalizationArtifactCombiner: Fix a bug in tryCombineMerges
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 13 15:00:30 PST 2020
arsenm added inline comments.
================
Comment at: llvm/lib/CodeGen/GlobalISel/Utils.cpp:168-171
+ if (!MRI.getRegClassOrRegBank(DstReg) ||
+ MRI.getRegClassOrRegBank(DstReg) == MRI.getRegClassOrRegBank(SrcReg))
+ return true;
+ return false;
----------------
You can fold this into return x || (...
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D70564/new/
https://reviews.llvm.org/D70564
More information about the llvm-commits
mailing list