Skip to content

Commit

Permalink
[CINN][Backend Pass Update No.6] Update longlong2int pass (#70462)
Browse files Browse the repository at this point in the history
* Update longlong2int pass

* Split ll2int to tow passes

* apply cherry pick

* Extract stmt logic from mutator into StmtPass

* Refine comment

* Implement CastLonglong2Int function to convert int64 types to int32 with overflow checks

* Refine

* Rename CastLonglong2Int to TryCastLonglong2Int for clarity and update references
  • Loading branch information
LittleHeroZZZX authored Dec 30, 2024
1 parent 1b96836 commit cdf2b8e
Show file tree
Hide file tree
Showing 6 changed files with 284 additions and 196 deletions.
2 changes: 1 addition & 1 deletion paddle/cinn/optim/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ gather_srcs(
eliminate_common_global_memory_read.cc
rearrange_load_instruction.cc
check_tensor_buffer_map.cc
longlong2int.cc
longlong2int_pass.cc
vectorize_for_trans.cc)

if(WITH_CUDA OR WITH_ROCM)
Expand Down
191 changes: 0 additions & 191 deletions paddle/cinn/optim/longlong2int.cc

This file was deleted.

Loading

0 comments on commit cdf2b8e

Please sign in to comment.