commit | 374613d69775dcca97b9e725a2eede9f3b31ef18 | [log] [tgz] |
---|---|---|
author | Matt Arsenault <Matthew.Arsenault@amd.com> | Tue Feb 02 19:18:48 2016 +0000 |
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | Tue Feb 02 19:18:48 2016 +0000 |
tree | 225af4d3b2621879dbf30f5bb0b3932b0fe3ccba | |
parent | 380d47d65122b4514e47e0af3f72b553adf8d58b [diff] |
AMDGPU: Use inbounds when calculating workitem offset When promoting allocas to LDS, we know we are indexing into a specific area just created, and the calculation will also never overflow. Also emit some of the muls as nsw nuw, because instcombine infers this already from the range metadata. I think putting this on the other adds and muls might be OK too, but I'm not 100% sure. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@259545 91177308-0d34-0410-b5e6-96231b3b80d8