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

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 3 01:47:18 PDT 2024


================
@@ -1974,6 +1975,161 @@ static bool foldFCmpToFPClassTest(CmpInst *Cmp, const TargetLowering &TLI,
   return true;
 }
 
+static bool isRemOfLoopIncrementWithLIV(Value *Rem, const LoopInfo *LI,
----------------
dtcxzyw wrote:

Is `LIV` an abbreviation for `LoopInVariant`?

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


More information about the llvm-commits mailing list