diff options
| author | Justin Lebar <jlebar@google.com> | 2017-02-03 15:13:50 +0000 |
|---|---|---|
| committer | Justin Lebar <jlebar@google.com> | 2017-02-03 15:13:50 +0000 |
| commit | e90c4684441e38616f2254c90b361df1fb3e809e (patch) | |
| tree | 965b0a7695f31dff2ec4e395125d7626b33a18fa /llvm/lib/Target | |
| parent | 522211b9fa890483ba6467f4e42aa12a053e1687 (diff) | |
| download | bcm5719-llvm-e90c4684441e38616f2254c90b361df1fb3e809e.tar.gz bcm5719-llvm-e90c4684441e38616f2254c90b361df1fb3e809e.zip | |
[NVPTX] Enable combineRepeatedFPDivisors for NVPTX.
Reviewers: tra
Subscribers: jholewinski, llvm-commits
Differential Revision: https://reviews.llvm.org/D29477
llvm-svn: 294011
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/NVPTX/NVPTXISelLowering.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/NVPTX/NVPTXISelLowering.h b/llvm/lib/Target/NVPTX/NVPTXISelLowering.h index f6494f6d37e..ab78d8a936b 100644 --- a/llvm/lib/Target/NVPTX/NVPTXISelLowering.h +++ b/llvm/lib/Target/NVPTX/NVPTXISelLowering.h @@ -530,6 +530,8 @@ public: int &ExtraSteps, bool &UseOneConst, bool Reciprocal) const override; + unsigned combineRepeatedFPDivisors() const override { return 2; } + bool allowFMA(MachineFunction &MF, CodeGenOpt::Level OptLevel) const; bool allowUnsafeFPMath(MachineFunction &MF) const; |

