summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Segovia <segovia.benjamin@gmail.com>2012-06-19 21:36:09 +0000
committerKeith Packard <keithp@keithp.com>2012-08-10 16:18:49 -0700
commita9e9f6269e77acdb5e13ce404653e69d1127b10c (patch)
tree7a1f521092db8ff2db0a3e6a4746aa17c8839b9c
parent4cb86c459855a394b9d0f062206836d734ccb70b (diff)
downloadbeignet-a9e9f6269e77acdb5e13ce404653e69d1127b10c.tar.gz
Fixed a typo in Release
-rw-r--r--backend/CMakeLists.txt8
-rw-r--r--backend/src/backend/gen_reg_allocation.cpp4
-rw-r--r--backend/src/ir/lowering.cpp2
3 files changed, 7 insertions, 7 deletions
diff --git a/backend/CMakeLists.txt b/backend/CMakeLists.txt
index 6c6b8176..8057f4cf 100644
--- a/backend/CMakeLists.txt
+++ b/backend/CMakeLists.txt
@@ -74,7 +74,7 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
set (CMAKE_CXX_FLAGS_DEBUG "-g -DGBE_DEBUG=1")
set (CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g -DGBE_DEBUG=1")
set (CMAKE_CXX_FLAGS_MINSIZEREL "-Os -DNDEBUG -DGBE_DEBUG=0")
- set (CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG -DGBE_DEBUG=0")
+ set (CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG -DGBE_DEBUG=0")
set (CMAKE_C_FLAGS "${CMAKE_C_CXX_FLAGS}")
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${GBE_DEBUG_MEMORY_FLAG}")
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${GBE_COMPILE_UTESTS_FLAG}")
@@ -82,14 +82,14 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
set (CMAKE_C_FLAGS_DEBUG "-g -DGBE_DEBUG=1")
set (CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g -DGBE_DEBUG=1")
set (CMAKE_C_FLAGS_MINSIZEREL "-Os -DNDEBUG -DGBE_DEBUG=0")
- set (CMAKE_C_FLAGS_RELEASE "-O3 -DNDEBUG -DGBE_DEBUG=0")
+ set (CMAKE_C_FLAGS_RELEASE "-O2 -DNDEBUG -DGBE_DEBUG=0")
elseif (COMPILER STREQUAL "CLANG")
set (CMAKE_C_COMPILER "clang")
set (CMAKE_C_FLAGS "-Wall -std=c99")
set (CMAKE_C_FLAGS_DEBUG "-g -DGBE_DEBUG=1")
set (CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g -DGBE_DEBUG=1")
set (CMAKE_C_FLAGS_MINSIZEREL "-Os -DNDEBUG -DGBE_DEBUG=0")
- set (CMAKE_C_FLAGS_RELEASE "-O3 -DNDEBUG -DGBE_DEBUG=0")
+ set (CMAKE_C_FLAGS_RELEASE "-O2 -DNDEBUG -DGBE_DEBUG=0")
set (CMAKE_CXX_COMPILER "clang++")
set (CMAKE_CXX_FLAGS "-fstrict-aliasing -msse2 -ffast-math -fPIC -Wall -Wno-format-security -Wno-invalid-offsetof -std=c++0x")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GBE_DEBUG_MEMORY_FLAG}")
@@ -98,7 +98,7 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
set (CMAKE_CXX_FLAGS_DEBUG "-g -DGBE_DEBUG=1")
set (CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g -DGBE_DEBUG=1")
set (CMAKE_CXX_FLAGS_MINSIZEREL "-Os -DNDEBUG -DGBE_DEBUG=0")
- set (CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG -DGBE_DEBUG=0")
+ set (CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG -DGBE_DEBUG=0")
set (CMAKE_AR "/usr/bin/llvm-ar")
set (CMAKE_LINKER "/usr/bin/llvm-ld")
set (CMAKE_NM "/usr/bin/llvm-nm")
diff --git a/backend/src/backend/gen_reg_allocation.cpp b/backend/src/backend/gen_reg_allocation.cpp
index 4307f406..0fcec56b 100644
--- a/backend/src/backend/gen_reg_allocation.cpp
+++ b/backend/src/backend/gen_reg_allocation.cpp
@@ -181,7 +181,7 @@ namespace gbe
}
/*! Will sort vector in decreasing order */
- INLINE bool cmp(const SelectionVector *v0, const SelectionVector *v1) {
+ inline bool cmp(const SelectionVector *v0, const SelectionVector *v1) {
return v0->regNum > v1->regNum;
}
@@ -215,7 +215,7 @@ namespace gbe
}
template <bool sortStartingPoint>
- INLINE bool cmp(const GenRegInterval *i0, const GenRegInterval *i1) {
+ inline bool cmp(const GenRegInterval *i0, const GenRegInterval *i1) {
return sortStartingPoint ? i0->minID < i1->minID : i0->maxID < i1->maxID;
}
diff --git a/backend/src/ir/lowering.cpp b/backend/src/ir/lowering.cpp
index 0f0c7082..2ec84540 100644
--- a/backend/src/ir/lowering.cpp
+++ b/backend/src/ir/lowering.cpp
@@ -359,8 +359,8 @@ namespace ir {
}
void FunctionArgumentLowerer::lower(uint32_t argID) {
+ IF_DEBUG(const ArgUse argUse = )this->getArgUse(argID);
#if GBE_DEBUG
- const ArgUse argUse = this->getArgUse(argID);
GBE_ASSERTM(argUse != ARG_WRITTEN,
"TODO A store to a structure argument "
"(i.e. not a char/short/int/float argument) has been found. "