Index: src/IceTargetLoweringX86BaseImpl.h |
diff --git a/src/IceTargetLoweringX86BaseImpl.h b/src/IceTargetLoweringX86BaseImpl.h |
index 739ebb5d338c69160796d452c3bc00f59dc22f78..26539252f6fa4bfae7542f46ad5a60ad2f513dd6 100644 |
--- a/src/IceTargetLoweringX86BaseImpl.h |
+++ b/src/IceTargetLoweringX86BaseImpl.h |
@@ -302,6 +302,8 @@ template <class Machine> void TargetX86Base<Machine>::staticInit() { |
template <class Machine> void TargetX86Base<Machine>::translateO2() { |
TimerMarker T(TimerStack::TT_O2, Func); |
+ genTargetHelperCalls(); |
+ |
// Merge Alloca instructions, and lay out the stack. |
static constexpr bool SortAndCombineAllocas = true; |
Func->processAllocas(SortAndCombineAllocas); |
@@ -425,6 +427,8 @@ template <class Machine> void TargetX86Base<Machine>::translateO2() { |
template <class Machine> void TargetX86Base<Machine>::translateOm1() { |
TimerMarker T(TimerStack::TT_Om1, Func); |
+ genTargetHelperCalls(); |
+ |
// Do not merge Alloca instructions, and lay out the stack. |
static constexpr bool SortAndCombineAllocas = false; |
Func->processAllocas(SortAndCombineAllocas); |