From 84921b9860adbc7cd40df8beb9caf542ddaaa51b Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Sat, 24 Oct 2015 23:11:13 +0000 Subject: Refactor: Simplify boolean conditional return statements in lib/CodeGen. Patch by Richard. llvm-svn: 251213 --- llvm/lib/CodeGen/PseudoSourceValue.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'llvm/lib/CodeGen/PseudoSourceValue.cpp') diff --git a/llvm/lib/CodeGen/PseudoSourceValue.cpp b/llvm/lib/CodeGen/PseudoSourceValue.cpp index da54c69e36c..1f46417e61e 100644 --- a/llvm/lib/CodeGen/PseudoSourceValue.cpp +++ b/llvm/lib/CodeGen/PseudoSourceValue.cpp @@ -50,9 +50,7 @@ bool PseudoSourceValue::isAliased(const MachineFrameInfo *) const { } bool PseudoSourceValue::mayAlias(const MachineFrameInfo *) const { - if (isGOT() || isConstantPool() || isJumpTable()) - return false; - return true; + return !(isGOT() || isConstantPool() || isJumpTable()); } bool FixedStackPseudoSourceValue::isConstant( -- cgit v1.2.3