[llvm] [GISel][RISCV] Legalize G_CONSTANT_FOLD_BARRIER (PR #89960)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 24 11:05:06 PDT 2024


================
@@ -0,0 +1,31 @@
+# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 4
+# RUN: llc -mtriple=riscv32 -run-pass=legalizer %s -o - | FileCheck %s
+---
+name:            xor_and_i32
----------------
dtcxzyw wrote:

> you just need the one instance of the instruction

Generating `CONSTANT_FOLD_BARRIER` requires at least two constants.


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


More information about the llvm-commits mailing list