[llvm] [CodeGenPrepare] Folding `urem` with loop invariant value as remainder (PR #96625)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 4 00:47:53 PDT 2024


================
@@ -0,0 +1,884 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s
----------------
dtcxzyw wrote:

https://github.com/llvm/llvm-project/blob/97a2bd8415dc6792b99ec0f091ad7570673c3f37/llvm/lib/CodeGen/CodeGenPrepare.cpp#L566

IIRC it always requires LI. It is weird.


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


More information about the llvm-commits mailing list