[llvm] [IPSCCP] Add range attribute handling. (PR #86747)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 9 23:42:18 PDT 2024


================
@@ -873,6 +890,15 @@ bool SCCPInstVisitor::markConstant(ValueLatticeElement &IV, Value *V,
   return true;
 }
 
+bool SCCPInstVisitor::markConstantRange(ValueLatticeElement &IV, Value *V,
+                                        ConstantRange &CR) {
----------------
nikic wrote:

Should pass by const reference here (or by value and use std::move, but that's not compatible with the dbg printing).

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


More information about the llvm-commits mailing list