Title: Propagate constant load/store offsets more efficiently · Issue #32 · AssemblyScript/assemblyscript · GitHub
Open Graph Title: Propagate constant load/store offsets more efficiently · Issue #32 · AssemblyScript/assemblyscript
X Title: Propagate constant load/store offsets more efficiently · Issue #32 · AssemblyScript/assemblyscript
Description: For example: const index = 4; store
Open Graph Description: For example: const index = 4; store
X Description: For example: const index = 4; store<i32>(ptr + <usize>index * sizeof<i32>(), value); // emit as: (i32.store (i32.add (get_local $0) (i32.const 16)) (get_local $2)) Good optimize t...
Opengraph URL: https://github.com/AssemblyScript/assemblyscript/issues/32
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Propagate constant load/store offsets more efficiently","articleBody":"For example:\r\n```ts\r\nconst index = 4;\r\nstore\u003ci32>(ptr + \u003cusize>index * sizeof\u003ci32>(), value);\r\n// emit as: (i32.store (i32.add (get_local $0) (i32.const 16)) (get_local $2))\r\n```\r\n\r\nGood optimize to this in compile time:\r\n```ts\r\nstore\u003ci32>(ptr, value, 4 * sizeof\u003ci32>());\r\n// emit as: (i32.store offset=16 (get_local $0) (get_local $2))\r\n```\r\n\r\nSo may be this good doing inside load / store buildins.\r\n\r\nThat do you think?","author":{"url":"https://github.com/MaxGraey","@type":"Person","name":"MaxGraey"},"datePublished":"2018-02-16T21:58:00Z","url":"https://github.com/AssemblyScript/assemblyscript/issues/32"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6c15b382-5238-2829-1851-15f2cfc6d7ab |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9066:229F8E:4E77CF:68969A:6B00A5D7 |
| html-safe-nonce | 2e2ceab7dd67959d66f34c6456081006fe9f6e3b4e6090d14a29114165d7955f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDY2OjIyOUY4RTo0RTc3Q0Y6Njg5NjlBOjZCMDBBNUQ3IiwidmlzaXRvcl9pZCI6Ijg0NDAwNDEzNzMzMzExMzgwMDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3161827e13bb0d2c345415fbea6e1cc0106ab0eed1ea3a1187201a128950a835 |
| hovercard-subject-tag | issue:297932543 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/AssemblyScript/assemblyscript/32/issue_layout |
| twitter:image | https://opengraph.githubassets.com/679c05ee384295547da1d2e80aed8f13cbf167ee6f4952ecbfbf85a295f31ec9/AssemblyScript/assemblyscript/issues/32 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/679c05ee384295547da1d2e80aed8f13cbf167ee6f4952ecbfbf85a295f31ec9/AssemblyScript/assemblyscript/issues/32 |
| og:image:alt | For example: const index = 4; store |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MaxGraey |
| hostname | github.com |
| expected-hostname | github.com |
| None | 455b493e3402a3a3a06beac5d20bb7db3da060808b220aa48d6a7eca7c59863a |
| turbo-cache-control | no-preview |
| go-import | github.com/AssemblyScript/assemblyscript git https://github.com/AssemblyScript/assemblyscript.git |
| octolytics-dimension-user_id | 28916798 |
| octolytics-dimension-user_login | AssemblyScript |
| octolytics-dimension-repository_id | 105138356 |
| octolytics-dimension-repository_nwo | AssemblyScript/assemblyscript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 105138356 |
| octolytics-dimension-repository_network_root_nwo | AssemblyScript/assemblyscript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2f575159976167242d488c0b062eb355c4e198b7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width