Loops inside transactional regions in RTM (TSX)

Loops inside transactional regions in RTM (TSX)

Hi everyone,

I have a question about loops in TSX. Can I put loops inside a transactional region?




   while(cond) i++;



Thank you very much,

3 posts / novo 0
Último post
Para obter mais informações sobre otimizações de compiladores, consulte Aviso sobre otimizações.

Yes, you can put conditional code and loops inside a transaction.

imagem de jimdempseyatthecove

I might add, if you use temporary variables, initialize them prior to entering the transaction, and then re-initialize them to same value before exit of transaction. The elison functionality will then void all writes to the temporary variable (inside the transaction).

Jim Dempsey


Faça login para deixar um comentário.