diff options
| author | Nick Lewycky <nicholas@mxc.ca> | 2008-11-21 07:33:58 +0000 |
|---|---|---|
| committer | Nick Lewycky <nicholas@mxc.ca> | 2008-11-21 07:33:58 +0000 |
| commit | 07d726ec4dbb2ff06f4b00eded264a849fce1a28 (patch) | |
| tree | 4c00aec13c8999ccc953a262b717a4ca843d63ee /clang/lib/Lex/MacroArgs.cpp | |
| parent | 6b0cf14ba43bef0b4f5c6005cd78e48b65e1c5f8 (diff) | |
| download | bcm5719-llvm-07d726ec4dbb2ff06f4b00eded264a849fce1a28.tar.gz bcm5719-llvm-07d726ec4dbb2ff06f4b00eded264a849fce1a28.zip | |
Optimize (x/y)*y into x-(x%y) in general. Div and rem are about the same, and
a subtract is cheaper than a multiply. This generalizes an existing transform.
llvm-svn: 59800
Diffstat (limited to 'clang/lib/Lex/MacroArgs.cpp')
0 files changed, 0 insertions, 0 deletions

