| Index: src/IceTargetLoweringX8632.cpp
|
| diff --git a/src/IceTargetLoweringX8632.cpp b/src/IceTargetLoweringX8632.cpp
|
| index b9d3170d2182e41a5fd847af566f7f52ee0fddb2..39cc76ac70bba46e6d7552f57f1f0b757040db8d 100644
|
| --- a/src/IceTargetLoweringX8632.cpp
|
| +++ b/src/IceTargetLoweringX8632.cpp
|
| @@ -354,11 +354,9 @@ void TargetX8632::translateO2() {
|
| Func->liveness(Liveness_Intervals);
|
| if (Func->hasError())
|
| return;
|
| - // Validate the live range computations. Do it outside the timing
|
| - // code. TODO: Put this under a flag.
|
| - bool ValidLiveness = Func->validateLiveness();
|
| - assert(ValidLiveness);
|
| - (void)ValidLiveness; // used only in assert()
|
| + // Validate the live range computations. The expensive validation
|
| + // call is deliberately only made when assertions are enabled.
|
| + assert(Func->validateLiveness());
|
| ComputedLiveRanges = true;
|
| // The post-codegen dump is done here, after liveness analysis and
|
| // associated cleanup, to make the dump cleaner and more useful.
|
|
|