aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorDeric C. <cheung.deric@gmail.com>2025-07-14 18:13:42 -0700
committerGitHub <noreply@github.com>2025-07-14 18:13:42 -0700
commit27b3b4a665f144b968a04502e5461ab8d1cd1471 (patch)
treec79a23b0448fa335e71994362faa84ba5febf93c /clang/lib/CodeGen/CodeGenModule.cpp
parent7ba0c98265977651540c64795b244166af329ca8 (diff)
downloadllvm-27b3b4a665f144b968a04502e5461ab8d1cd1471.zip
llvm-27b3b4a665f144b968a04502e5461ab8d1cd1471.tar.gz
llvm-27b3b4a665f144b968a04502e5461ab8d1cd1471.tar.bz2
[DirectX] Move the scalarizer pass to before dxil-flatten-arrays (#146800)
Fixes #145924 and #140416 Depends on #146173 being merged first. This PR moves the scalarizer pass to immediately before the dxil-flatten-arrays pass to allow the dxil-flatten-arrays pass to turn scalar GEPs (including i8 GEPs) into flattened array GEPs where applicable. A number of LLVM DirectX CodeGen tests have been edited to remove scalar GEPs and also correct previously uncaught incorrectly-transformed GEPs. No more validation errors of the form `Access to out-of-bounds memory is disallowed` or `TGSM pointers must originate from an unambiguous TGSM global variable` appear anymore after this PR when compiling DML shaders.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions