flang icon indicating copy to clipboard operation
flang copied to clipboard

Add attributes to IR instructions

Open pawosm-arm opened this issue 2 years ago • 2 comments

This patch adds the nsz, reassoc attributes to arithmetic instructions. These attributes helps with vectorisation of loops containing reductions.

Also included are testcases.

This commit requires corresponding change to be submitted on the classic-flang-llvm-project repository in order to have all of the test cases passing!

pawosm-arm avatar Jun 30 '22 18:06 pawosm-arm

This will only pass when the "Changes for reassoc attributes" PR is merged on classic-flang-llvm-project side.

pawosm-arm avatar Jul 26 '22 10:07 pawosm-arm

Please document XBIT(216, 8) and XBIT(216, 10) in tools/flang2/docs/xflag.n.

Gosh, a vital part of this commit got missing! Now it's there.

pawosm-arm avatar Jul 26 '22 16:07 pawosm-arm