diff options
author | Sanjay Patel <spatel@rotateright.com> | 2019-02-09 17:03:59 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2019-02-09 17:03:59 +0000 |
commit | 7467510453be40019a746aedfff85909776e7e4f (patch) | |
tree | 658359f5d4030bdd806e65a61f5f29b139f3c3bb /llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp | |
parent | f31cf49c587ec1d72c9b93a80bd085640b4d50ca (diff) | |
download | llvm-7467510453be40019a746aedfff85909776e7e4f.zip llvm-7467510453be40019a746aedfff85909776e7e4f.tar.gz llvm-7467510453be40019a746aedfff85909776e7e4f.tar.bz2 |
[TargetLowering] add tests to show effect of setcc sub->shift; NFC
There's effectively no difference for the cases with variables.
We just trade a sub for an add on those. But the case with a
subtract from constant would require an extra move instruction
on x86, so this looks like a reasonable generic combine.
llvm-svn: 353619
Diffstat (limited to 'llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp')
0 files changed, 0 insertions, 0 deletions