[llvm] [GVN] Teach GVN simple masked load/store forwarding (PR #157689)
David Sherwood via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 18 06:37:39 PDT 2025
================
@@ -2734,6 +2775,11 @@ bool GVNPass::processInstruction(Instruction *I) {
return false;
}
+ if (auto *II = dyn_cast<IntrinsicInst>(I))
----------------
david-arm wrote:
I think you can simplify this a little by doing something like:
```
if (match(I, m_Intrinsic<Intrinsic::masked_load>()) && processMaskedLoad(cast<IntrinsicInst>(I)))
return true;
```
https://github.com/llvm/llvm-project/pull/157689
More information about the llvm-commits
mailing list