[llvm] [RISCV][VLOPT] Don't reduce the VL is the same as CommonVL (PR #123878)

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 22 07:42:19 PST 2025


================
@@ -150,3 +150,26 @@ define <vscale x 4 x i32> @dont_optimize_tied_def(<vscale x 4 x i32> %a, <vscale
   ret <vscale x 4 x i32> %2
 }
 
+define <vscale x 4 x i32> @same_vl_imm(<vscale x 4 x i32> %passthru, <vscale x 4 x i32> %a, <vscale x 4 x i32> %b) {
----------------
preames wrote:

I suspect you need an example which contains either a phi or an unreachable block (since that breaks dominance) with self referencing instructions. 

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


More information about the llvm-commits mailing list