[llvm] 8c9badf - Replace integer usage with enumeration.
Eric Christopher via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 3 20:00:40 PDT 2020
Author: Eric Christopher
Date: 2020-06-03T20:00:28-07:00
New Revision: 8c9badf61d418dad3c5e3f74f9e677cfbce9c2eb
URL: https://github.com/llvm/llvm-project/commit/8c9badf61d418dad3c5e3f74f9e677cfbce9c2eb
DIFF: https://github.com/llvm/llvm-project/commit/8c9badf61d418dad3c5e3f74f9e677cfbce9c2eb.diff
LOG: Replace integer usage with enumeration.
Added:
Modified:
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
index 0c2effa1eb76..802df5734faf 100644
--- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
@@ -14009,7 +14009,7 @@ AArch64TargetLowering::shouldExpandAtomicCmpXchgInIR(
// on the stack and close enough to the spill slot, this can lead to a
// situation where the monitor always gets cleared and the atomic operation
// can never succeed. So at -O0 we need a late-expanded pseudo-inst instead.
- if (getTargetMachine().getOptLevel() == 0)
+ if (getTargetMachine().getOptLevel() == CodeGenOpt::None)
return AtomicExpansionKind::None;
return AtomicExpansionKind::LLSC;
}
More information about the llvm-commits
mailing list