[llvm] [Hexagon] Prevent optimizing out counter reads (PR #182338)
Alexey Karyakin via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 19 12:17:19 PST 2026
================
@@ -349,6 +349,16 @@ def LDriw_ctr : LDInst<(outs CtrRegs:$dst),
(ins IntRegs:$addr, s32_0Imm:$off),
".error \"should not emit\"", []>;
+let isCodeGenOnly = 1, isPseudo = 1, hasSideEffects = 1 in {
+ def PS_TfrCRR : InstHexagon<(outs IntRegs:$Rd32), (ins CtrRegs:$Cs32),
----------------
quic-akaryaki wrote:
Aesthetics is not my strong side. Thanks! I will rename.
https://github.com/llvm/llvm-project/pull/182338
More information about the llvm-commits
mailing list