llvm-project
0df525bc - [LoongArch] Add patterns to support `[x]vadda.{b/h/w/d}` generation (#160674)

Commit
42 days ago
[LoongArch] Add patterns to support `[x]vadda.{b/h/w/d}` generation (#160674) This commit add patterns for lsx and lasx to support generating `[x]vadda.{b/h/w/d}` instructions. Note: For convenience, this commit also set `ISD::ABS` as legal. As shown in the tests, this brings no change to the results, just same as the results obtained from expanding it before. But, setting it as legal brings more vectorization opportunities to IR transformation which may bring more vector optimization chances for later stages and the backend.
Author
Parents
Loading