----- V8.TFTurboshaftWasmOptimize -----

MERGE B0
0: Parameter()[1]
1: StackCheck()[WebAssembly, function-entry]
2: Constant()[word64: 1]
3: WordBinop(#0, #2)[BitwiseAnd, Word64]
4: Constant()[word64: 0]
5: Equal(#3, #4)[Word64]
6: Constant()[word32: 0]
7: Branch(#5)[B2, B1, False]

BLOCK B1 <- B0
10: Load *(#0) [tagged base, TaggedPointer]
11: Load *(#10 + 12) [tagged base, Uint16, offset: 12]
12: Constant()[word32: 128]
13: Comparison(#11, #12)[UnsignedLessThan, Word32]
14: Goto()[B3]

BLOCK B2 <- B0
15: Goto()[B3]

MERGE B3 <- B1, B2
16: Phi(#13, #6)[Word32]
17: Return(#6, #16)

----- V8.TFTurboshaftWasmDeadCodeElimination -----

MERGE B0
0: Parameter()[1]
1: Constant()[word64: 1]
2: WordBinop(#0, #1)[BitwiseAnd, Word64]
3: Constant()[word64: 0]
4: Equal(#2, #3)[Word64]
5: Constant()[word32: 0]
6: Branch(#4)[B2, B1, False]

BLOCK B1 <- B0
9: TaggedBitcast(#0)[Tagged, Word64]
10: Load *(#9 - 1) [raw, TaggedPointer, offset: -1]
11: TaggedBitcast(#10)[Tagged, Word64]
12: Load *(#11 + 11) [raw, Uint16, offset: 11]
13: Constant()[word32: 128]
14: Comparison(#12, #13)[UnsignedLessThan, Word32]
15: Goto()[B3]


On Block B1
Before TFTurboshaftWasmDeadCodeElimination
10: Load *(#0) [tagged base, TaggedPointer]
After:
9: TaggedBitcast(#0)[Tagged, Word64]
10: Load *(#9 - 1) [raw, TaggedPointer, offset: -1]

Is it changed by TFTurboshaftWasmDeadCodeElimination? 
I set  constexpr bool trace_analysis  true,
I can't find any information about this change.

cmd:
arm64.release/d8 --test test/mjsunit/mjsunit.js 
test/mjsunit/wasm/turboshaft/instruction-selection.js 
--random-seed=-1803833885 --nohard-abort --verify-heap 
--testing-d8-test-runner --no-liftoff --no-wasm-lazy-compilation 
--experimental-wasm-stringref --turboshaft-wasm 
--turboshaft-wasm-instruction-selection --print-code --trace-turbo-graph 
--trace-turbo-filter=isString

-- 
-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- 
You received this message because you are subscribed to the Google Groups 
"v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/v8-dev/0f717fd7-a31d-4d32-ae62-4a5e2d03e50dn%40googlegroups.com.

Reply via email to