[PATCH] D153563: Use LVI to eliminate instructions during VP

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 27 01:16:17 PDT 2023


nikic added inline comments.


================
Comment at: llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp:1098
+    }
+  }
+  return false;
----------------
LVI should be able to determine that this value is constant by itself -- does using `LVI->getConstant(SDI, SDI)` give the desired result?


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

https://reviews.llvm.org/D153563



More information about the llvm-commits mailing list