mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-29 10:25:12 +00:00
enhance vmcore to know that udiv's can be exact, and add a trivial
instcombine xform to exercise this. Nothing forms exact udivs yet though. This is progress on PR8862 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124992 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -470,9 +470,10 @@ static uint64_t GetOptimizationFlags(const Value *V) {
|
||||
Flags |= 1 << bitc::OBO_NO_SIGNED_WRAP;
|
||||
if (OBO->hasNoUnsignedWrap())
|
||||
Flags |= 1 << bitc::OBO_NO_UNSIGNED_WRAP;
|
||||
} else if (const SDivOperator *Div = dyn_cast<SDivOperator>(V)) {
|
||||
if (Div->isExact())
|
||||
Flags |= 1 << bitc::SDIV_EXACT;
|
||||
} else if (const PossiblyExactOperator *PEO =
|
||||
dyn_cast<PossiblyExactOperator>(V)) {
|
||||
if (PEO->isExact())
|
||||
Flags |= 1 << bitc::PEO_EXACT;
|
||||
}
|
||||
|
||||
return Flags;
|
||||
|
Reference in New Issue
Block a user