Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
5f12506
Fixed improper peephole zero-extension removal when cdq/cdqe/cwde ins…
TIHan Feb 27, 2023
cf0bdf2
Update regression test
TIHan Feb 27, 2023
697dfdc
Formatting
TIHan Feb 27, 2023
f78c28d
Handle cdq differently
TIHan Feb 27, 2023
b6467cb
Handle cdq differently
TIHan Feb 27, 2023
334fc46
Handle cdq differently
TIHan Feb 27, 2023
47eb762
Initial commit to eliminate redundant 'cmp' instructions
TIHan Feb 28, 2023
ef8688b
Take into account cmpxchg
TIHan Feb 28, 2023
2184607
Take into account cmpxchg
TIHan Feb 28, 2023
25ac969
Feedback
TIHan Feb 28, 2023
2cc3541
Temporarily disable cmp opt if we encounter a mov
TIHan Mar 1, 2023
1013666
Merge remote-tracking branch 'upstream/main' into redundant-cmp-opt
TIHan Mar 1, 2023
15e6462
Merge branch 'redundant-cmp-opt' of https://github.com/TIHan/runtime …
TIHan Mar 1, 2023
3218581
Allow checking for mov
TIHan Mar 1, 2023
e5e2599
Allow regardless of targetReg
TIHan Mar 1, 2023
baee67f
Allow regardless of targetReg
TIHan Mar 1, 2023
0827dc3
Merge branch 'zero-extend-fix' into redundant-cmp-opt
TIHan Mar 1, 2023
03e4f8b
Checking if an instruction resets a flag.
TIHan Mar 1, 2023
5058e59
Remove useless comment
TIHan Mar 1, 2023
0ba01ef
Minor fix
TIHan Mar 1, 2023
8d8485e
Abort are checking cmp
TIHan Mar 2, 2023
49b6f27
Some refactoring. Taking into account any instruction that modifies f…
TIHan Mar 3, 2023
49a8043
Minor cleanup
TIHan Mar 3, 2023
ee0cd47
Remove function from header
TIHan Mar 3, 2023
91c1054
Quick fix
TIHan Mar 3, 2023
1c5f518
Sync
TIHan Mar 4, 2023
f74a895
Merge
TIHan Mar 6, 2023
61ee9da
Merge remote-tracking branch 'upstream/main' into redundant-cmp-opt
TIHan Apr 3, 2023
4d4e059
Formatting
TIHan Apr 3, 2023
03d9ab3
Only look for 'cmp reg, reg'
TIHan Apr 5, 2023
51c70a7
Added comment
TIHan Apr 5, 2023
3dd723f
Update src/coreclr/jit/emitxarch.cpp
TIHan Apr 5, 2023
0cb00b4
Update src/coreclr/jit/emitxarch.cpp
TIHan Apr 5, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Handle cdq differently
  • Loading branch information
TIHan committed Feb 27, 2023
commit b6467cb8a1fce7cebbbda63295b3209cc4a97c4d
2 changes: 1 addition & 1 deletion src/coreclr/jit/emitxarch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ bool emitter::AreUpper32BitsZero(regNumber reg)
}

// This is a special case for cdq/cwde.
// They always write to and sign-extend RAX.
// They always write to and sign-extend.
if (instrHasImplicitRegSingleDest(id->idIns()))
{
switch (id->idIns())
Expand Down