remove unchecked_div/_rem from cg_ssa
This commit is contained in:
parent
bfb923326f
commit
dc353f13b8
1 changed files with 0 additions and 16 deletions
|
@ -211,8 +211,6 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
|
||||||
args[1].val.unaligned_volatile_store(bx, dst);
|
args[1].val.unaligned_volatile_store(bx, dst);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
| sym::unchecked_div
|
|
||||||
| sym::unchecked_rem
|
|
||||||
| sym::unchecked_shl
|
| sym::unchecked_shl
|
||||||
| sym::unchecked_shr
|
| sym::unchecked_shr
|
||||||
| sym::unchecked_add
|
| sym::unchecked_add
|
||||||
|
@ -229,20 +227,6 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
|
||||||
bx.exactudiv(args[0].immediate(), args[1].immediate())
|
bx.exactudiv(args[0].immediate(), args[1].immediate())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
sym::unchecked_div => {
|
|
||||||
if signed {
|
|
||||||
bx.sdiv(args[0].immediate(), args[1].immediate())
|
|
||||||
} else {
|
|
||||||
bx.udiv(args[0].immediate(), args[1].immediate())
|
|
||||||
}
|
|
||||||
}
|
|
||||||
sym::unchecked_rem => {
|
|
||||||
if signed {
|
|
||||||
bx.srem(args[0].immediate(), args[1].immediate())
|
|
||||||
} else {
|
|
||||||
bx.urem(args[0].immediate(), args[1].immediate())
|
|
||||||
}
|
|
||||||
}
|
|
||||||
sym::unchecked_shl => bx.shl(args[0].immediate(), args[1].immediate()),
|
sym::unchecked_shl => bx.shl(args[0].immediate(), args[1].immediate()),
|
||||||
sym::unchecked_shr => {
|
sym::unchecked_shr => {
|
||||||
if signed {
|
if signed {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue