[llvm] [llvm][NewGVN] Fixing the replacement of incorrect instructions (PR #70599)

Ben Shi via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 29 22:14:42 PDT 2023


benshi001 wrote:

> I don't know how to add test case for llvm ir, can anyone give me a example?

Please check UT in `llvm/test/Transforms/`, probably `llvm/test/Transforms/Scalarizer` fit your need.

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


More information about the llvm-commits mailing list