aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
diff options
context:
space:
mode:
authorXiang Li <python3kgae@outlook.com>2023-09-01 20:08:39 -0400
committerGitHub <noreply@github.com>2023-09-01 20:08:39 -0400
commitc21cd168bb74175fe5fe33a404646b7d6dfe46a3 (patch)
treeb9c2a89749fd4689d4f65e5d03cc51a005191172 /llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
parent69d79f1f77147e5787efc8aa0300ea12dec95932 (diff)
downloadllvm-c21cd168bb74175fe5fe33a404646b7d6dfe46a3.zip
llvm-c21cd168bb74175fe5fe33a404646b7d6dfe46a3.tar.gz
llvm-c21cd168bb74175fe5fe33a404646b7d6dfe46a3.tar.bz2
[DirectX backend] avoid generate redundant bitcast in DXILPrepareModule (#65163)
When emit NoOp bitcast for GEP Ptr Operand, should use SourceElementType instead of ResultElementType. **Behavior Before Change** Redundant bitcast like ` bitcast ptr addrspace(3) @gs to ptr addrspace(3)` will be generated for llvm/test/CodeGen/DirectX/typed_ptr.ll **Behavior After Change** No bitcast will be generated. Fixes https://github.com/llvm/llvm-project/issues/65183
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp')
0 files changed, 0 insertions, 0 deletions