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

via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 3 21:14:31 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
----------------
goldsteinn wrote:

Okay, the issue is that just `opt -codegenprepare` doesn't actually run the loop analysis passes which this optimization requires. I can get it working if I do something like add `-licm`. Do you know the arguments to run the loop analysis pass as a pre-req?

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


More information about the llvm-commits mailing list