Commit 8dec7cf
committed
[VPlan] Allow generating vectors with VPInstruction::ptradd. NFC
Currently a ptradd can only generate a scalar, or a series of scalars per-lane.
In an upcoming patch to expand VPWidenPointerRecipe into smaller recipes, we need to be able to generate a vector ptradd, which currently we can't do.
This adds support for generating vectors by checking to see if the offset operand is a vector: If it isn't, it will generate per-lane scalars as per usual.1 parent 7eb14d9 commit 8dec7cf
2 files changed
+10
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
958 | 958 | | |
959 | 959 | | |
960 | 960 | | |
961 | | - | |
962 | | - | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
963 | 965 | | |
964 | 966 | | |
965 | 967 | | |
| |||
998 | 1000 | | |
999 | 1001 | | |
1000 | 1002 | | |
1001 | | - | |
| 1003 | + | |
1002 | 1004 | | |
1003 | 1005 | | |
1004 | 1006 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
494 | 494 | | |
495 | 495 | | |
496 | 496 | | |
497 | | - | |
498 | | - | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
499 | 500 | | |
500 | 501 | | |
501 | 502 | | |
| |||
848 | 849 | | |
849 | 850 | | |
850 | 851 | | |
851 | | - | |
852 | | - | |
853 | 852 | | |
854 | | - | |
| 853 | + | |
855 | 854 | | |
856 | 855 | | |
857 | 856 | | |
| |||
911 | 910 | | |
912 | 911 | | |
913 | 912 | | |
914 | | - | |
915 | | - | |
916 | | - | |
917 | 913 | | |
918 | 914 | | |
919 | 915 | | |
| |||
1001 | 997 | | |
1002 | 998 | | |
1003 | 999 | | |
1004 | | - | |
| 1000 | + | |
1005 | 1001 | | |
1006 | 1002 | | |
1007 | 1003 | | |
| |||
0 commit comments