diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2018-08-08 14:51:19 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2018-08-08 14:51:19 +0000 |
commit | 164e8b0b5cbbcd31dcc78d422e8e564cd1b356b1 (patch) | |
tree | 9852e5decf84e76f4d81c712c6f711d77c7da1a0 /llvm/lib/Target/PowerPC/PPCMachineFunctionInfo.h | |
parent | 5c579572811fbe6a5523baa5fd9b2119c6ed92a9 (diff) | |
download | bcm5719-llvm-164e8b0b5cbbcd31dcc78d422e8e564cd1b356b1.tar.gz bcm5719-llvm-164e8b0b5cbbcd31dcc78d422e8e564cd1b356b1.zip |
[TargetLowering] BuildUDIV - Add support for divide by one (PR38477)
Provide a pass-through of the numerator for divide by one cases - this is the same approach we take in DAGCombiner::visitSDIVLike.
I investigated whether we could achieve this by magic MULHU/SRL values but nothing appeared to work as we don't have a way for MULHU(x,c) -> x
llvm-svn: 339254
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCMachineFunctionInfo.h')
0 files changed, 0 insertions, 0 deletions