[llvm] [RISCV] Match prefetch address with offset (PR #66072)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 25 11:13:02 PDT 2023


================
@@ -2240,6 +2241,9 @@ static bool selectConstantAddr(SelectionDAG *CurDAG, const SDLoc &DL,
   int64_t Lo12 = SignExtend64<12>(CVal);
   int64_t Hi = (uint64_t)CVal - (uint64_t)Lo12;
   if (!Subtarget->is64Bit() || isInt<32>(Hi)) {
+    if (IsPrefetch && (Lo12 & 0b11111) != 0)
----------------
topperc wrote:

Are there tests for prefetch with a constant address?

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


More information about the llvm-commits mailing list