[PATCH] D74539: [KnownBits] Avoid copying KnownBits objects

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 13 02:49:03 PST 2020


foad created this revision.
foad added reviewers: bjope, craig.topper, RKSimon.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.

Avoid copying KnownBits objects in some cases where we can move them or
use a slightly simpler constructor instead. NFC.

I found these cases by temporarily deleting KnownBits's copy constructor
and copy assignment operator.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D74539

Files:
  llvm/lib/Analysis/ValueTracking.cpp
  llvm/lib/CodeGen/GlobalISel/GISelKnownBits.cpp
  llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
  llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
  llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74539.244373.patch
Type: text/x-patch
Size: 4529 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200213/6dc40836/attachment.bin>


More information about the llvm-commits mailing list