[llvm] [SCCP] Support constant structure in PhiNode (PR #163713)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 17 07:03:23 PDT 2025


================
@@ -2125,6 +2143,21 @@ void SCCPInstVisitor::handleCallResult(CallBase &CB) {
   }
 }
 
+bool SCCPInstVisitor::isInstOverDefined(Instruction &Inst) {
----------------
nikic wrote:

```suggestion
bool SCCPInstVisitor::isInstFullyOverDefined(Instruction &Inst) {
```
Maybe? To make it clearer that this only returns true if all the elements are overdefined.

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


More information about the llvm-commits mailing list