mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-18 13:34:04 +00:00
Use 'auto' for easier reading; no functional change intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219804 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ed0b7a0b1a
commit
5af49c83c3
@ -710,18 +710,15 @@ static void WriteModuleInfo(const Module *M, const ValueEnumerator &VE,
|
||||
static uint64_t GetOptimizationFlags(const Value *V) {
|
||||
uint64_t Flags = 0;
|
||||
|
||||
if (const OverflowingBinaryOperator *OBO =
|
||||
dyn_cast<OverflowingBinaryOperator>(V)) {
|
||||
if (auto *OBO = dyn_cast<OverflowingBinaryOperator>(V)) {
|
||||
if (OBO->hasNoSignedWrap())
|
||||
Flags |= 1 << bitc::OBO_NO_SIGNED_WRAP;
|
||||
if (OBO->hasNoUnsignedWrap())
|
||||
Flags |= 1 << bitc::OBO_NO_UNSIGNED_WRAP;
|
||||
} else if (const PossiblyExactOperator *PEO =
|
||||
dyn_cast<PossiblyExactOperator>(V)) {
|
||||
} else if (auto *PEO = dyn_cast<PossiblyExactOperator>(V)) {
|
||||
if (PEO->isExact())
|
||||
Flags |= 1 << bitc::PEO_EXACT;
|
||||
} else if (const FPMathOperator *FPMO =
|
||||
dyn_cast<const FPMathOperator>(V)) {
|
||||
} else if (auto *FPMO = dyn_cast<const FPMathOperator>(V)) {
|
||||
if (FPMO->hasUnsafeAlgebra())
|
||||
Flags |= FastMathFlags::UnsafeAlgebra;
|
||||
if (FPMO->hasNoNaNs())
|
||||
|
Loading…
x
Reference in New Issue
Block a user