[llvm] [SCEV] Simplify SCEVExpr for PHI to SCEV for operand if operands are identical (PR #115945)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 14 18:39:18 PST 2024


================
@@ -6019,6 +6019,37 @@ const SCEV *ScalarEvolution::createNodeFromSelectLikePHI(PHINode *PN) {
   return nullptr;
 }
 
+// Returns SCEV for the first operand of a phi if all phi operands have
----------------
dtcxzyw wrote:

```suggestion
/// Returns SCEV for the first operand of a phi if all phi operands have
```
Use `///` for header comments.


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


More information about the llvm-commits mailing list