[PATCH] D74943: [GISel][KnownBits]{NFC} Add a cache mechanism to speed compile time

Quentin Colombet via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 21 10:23:48 PST 2020


qcolombet marked 2 inline comments as done.
qcolombet added inline comments.


================
Comment at: llvm/include/llvm/CodeGen/GlobalISel/GISelKnownBits.h:37
+  /// Cache maintained during a computeKnownBits request.
+  DenseMap<const MachineInstr *, KnownBits> ComputeKnownBitsCache;
 
----------------
arsenm wrote:
> This assumes an instruction with a single def
Good point. I'll do the mapping with a Register instead.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D74943/new/

https://reviews.llvm.org/D74943





More information about the llvm-commits mailing list