summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2008-11-21 07:33:58 +0000
committerNick Lewycky <nicholas@mxc.ca>2008-11-21 07:33:58 +0000
commit07d726ec4dbb2ff06f4b00eded264a849fce1a28 (patch)
tree4c00aec13c8999ccc953a262b717a4ca843d63ee /clang/lib/CodeGen/CodeGenModule.cpp
parent6b0cf14ba43bef0b4f5c6005cd78e48b65e1c5f8 (diff)
downloadbcm5719-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/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud