[clang] [clang][dataflow] Discard unneeded `ExprToLoc` and `ExprToVal` entries. (PR #72850)

Yitzhak Mandelbaum via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 20 12:55:23 PST 2023


================
@@ -24,25 +24,35 @@
 namespace clang {
 namespace dataflow {
 
-/// Returns a map from statements to basic blocks that contain them.
-static llvm::DenseMap<const Stmt *, const CFGBlock *>
-buildStmtToBasicBlockMap(const CFG &Cfg) {
-  llvm::DenseMap<const Stmt *, const CFGBlock *> StmtToBlock;
+/// Builds maps:
+/// - From statements to basic blocks that contain them.
+/// - From blocks to the expressions they consume.
----------------
ymand wrote:

Is the term "consume" defined somewhere?

https://github.com/llvm/llvm-project/pull/72850


More information about the cfe-commits mailing list