Chromium Code Reviews| Index: src/IceTargetLoweringARM32.h |
| diff --git a/src/IceTargetLoweringARM32.h b/src/IceTargetLoweringARM32.h |
| index 5e1b9576ae7eb1d4cd33eacdfb6dc5163d690e6b..0be3971616f7d791cda31417f246fb13e5f30e7a 100644 |
| --- a/src/IceTargetLoweringARM32.h |
| +++ b/src/IceTargetLoweringARM32.h |
| @@ -325,6 +325,7 @@ protected: |
| CondARM32::Cond Pred = CondARM32::AL) { |
| constexpr bool SetFlags = true; |
| Context.insert<InstARM32Add>(Dest, Src0, Src1, Pred, SetFlags); |
| + Context.insert<InstFakeUse>(Dest); |
|
Jim Stichnoth
2016/03/02 22:58:30
Optional. This pattern might be more self-documen
John
2016/03/02 23:02:44
Done.
|
| } |
| void _adc(Variable *Dest, Variable *Src0, Operand *Src1, |
| CondARM32::Cond Pred = CondARM32::AL) { |
| @@ -395,6 +396,7 @@ protected: |
| CondARM32::Cond Pred = CondARM32::AL) { |
| constexpr bool SetFlags = true; |
| Context.insert<InstARM32Lsl>(Dest, Src0, Src1, Pred, SetFlags); |
| + Context.insert<InstFakeUse>(Dest); |
| } |
| void _lsr(Variable *Dest, Variable *Src0, Operand *Src1, |
| CondARM32::Cond Pred = CondARM32::AL) { |
| @@ -711,6 +713,7 @@ protected: |
| CondARM32::Cond Pred = CondARM32::AL) { |
| constexpr bool SetFlags = true; |
| Context.insert<InstARM32Orr>(Dest, Src0, Src1, Pred, SetFlags); |
| + Context.insert<InstFakeUse>(Dest); |
| } |
| void _push(const VarList &Sources) { Context.insert<InstARM32Push>(Sources); } |
| void _pop(const VarList &Dests) { |
| @@ -734,6 +737,7 @@ protected: |
| CondARM32::Cond Pred = CondARM32::AL) { |
| constexpr bool SetFlags = true; |
| Context.insert<InstARM32Rsc>(Dest, Src0, Src1, Pred, SetFlags); |
| + Context.insert<InstFakeUse>(Dest); |
| } |
| void _rsc(Variable *Dest, Variable *Src0, Operand *Src1, |
| CondARM32::Cond Pred = CondARM32::AL) { |
| @@ -743,6 +747,7 @@ protected: |
| CondARM32::Cond Pred = CondARM32::AL) { |
| constexpr bool SetFlags = true; |
| Context.insert<InstARM32Rsb>(Dest, Src0, Src1, Pred, SetFlags); |
| + Context.insert<InstFakeUse>(Dest); |
| } |
| void _rsb(Variable *Dest, Variable *Src0, Operand *Src1, |
| CondARM32::Cond Pred = CondARM32::AL) { |
| @@ -756,6 +761,7 @@ protected: |
| CondARM32::Cond Pred = CondARM32::AL) { |
| constexpr bool SetFlags = true; |
| Context.insert<InstARM32Sbc>(Dest, Src0, Src1, Pred, SetFlags); |
| + Context.insert<InstFakeUse>(Dest); |
| } |
| void _sdiv(Variable *Dest, Variable *Src0, Variable *Src1, |
| CondARM32::Cond Pred = CondARM32::AL) { |
| @@ -788,6 +794,7 @@ protected: |
| CondARM32::Cond Pred = CondARM32::AL) { |
| constexpr bool SetFlags = true; |
| Context.insert<InstARM32Sub>(Dest, Src0, Src1, Pred, SetFlags); |
| + Context.insert<InstFakeUse>(Dest); |
| } |
| void _sxt(Variable *Dest, Variable *Src0, |
| CondARM32::Cond Pred = CondARM32::AL) { |