[PATCH] D45199: AArch64: Allow offsets to be folded into addresses with ELF.

Tim Northover via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 5 06:53:59 PDT 2018


t.p.northover added inline comments.


================
Comment at: llvm/test/CodeGen/AArch64/arm64-atomic-128.ll:32-33
 
-; CHECK-DAG: stp    [[DEST_REGLO]], [[DEST_REGHI]]
+; CHECK-DAG: str    [[DEST_REGLO]], [{{.*}}, :lo12:var]
+; CHECK-DAG: str    [[DEST_REGHI]], [{{.*}}, :lo12:var+8]
   %val = atomicrmw nand i128* %p, i128 %bits release
----------------
It's a bit of a shame to lose this optimization. Did you look into enhancing AArch64LoadStoreOptimizer.cpp to account for the new instruction shapes?


https://reviews.llvm.org/D45199





More information about the llvm-commits mailing list