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
Update regression test
  • Loading branch information
TIHan committed Feb 27, 2023
commit cf0bdf2a2903fd442b200ca09fa3a0361195e458
13 changes: 8 additions & 5 deletions src/tests/JIT/opt/Regressions/Regression6.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
// Generated by Fuzzlyn v1.5 on 2023-02-26 16:54:59
// Run on X64 Linux
// Seed: 15812590312404596729
// Reduced from 254.7 KiB to 0.5 KiB in 00:04:05
// Debug: Outputs 18446744069414584320
// Release: Outputs 0
public class C0
{
public ulong F2;
Expand All @@ -20,14 +17,20 @@ public class Program
{
public static ushort s_2;
public static C0 s_7;
public static void Main()
public static int Main()
{
ulong result = 1234;
for (int vr0 = 0; vr0 < 2; vr0++)
{
s_7 = M5();
ulong vr1 = s_7.F2;
System.Console.WriteLine(vr1);
result = vr1;
}

if (result != 18446744069414584320)
return 0;

return 100;
}

public static C0 M5()
Expand Down