[RFC][llvm] Added llvm.loop.vectorize.reassociate_fpreductions.enable metadata. by vzakhari · Pull Request #141685 · llvm/llvm-project (original) (raw)

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

vzakhari

@vzakhari vzakhari marked this pull request as ready for review

June 3, 2025 03:18

@vzakhari vzakhari changed the title[RFC][llvm] Added llvm.loop.vectorize.reassociation.enable metadata. [RFC][llvm] Added llvm.loop.vectorize.reassociate_fpreductions.enable metadata.

Jun 3, 2025

@vzakhari

This metadata allows unsafe reassociations of computations during the loop vectorization. For example, it allows vectorizing loops with floating-point reductions without the need to compile the whole function/program with -fassociative-math.

@vzakhari

@vzakhari

rscottmanley

fhahn

@vzakhari

@vzakhari