diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-11-23 20:33:57 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-11-23 20:33:57 +0000 |
commit | 94a622af4c91df2ad3f471c8896b302ddb865065 (patch) | |
tree | d7c600c75babe7cfa09ee9744bbbb6971e494081 /clang/lib/Basic/FileSystemStatCache.cpp | |
parent | 966b25b938ffef56cb805006bc385670a3578941 (diff) | |
download | llvm-94a622af4c91df2ad3f471c8896b302ddb865065.zip llvm-94a622af4c91df2ad3f471c8896b302ddb865065.tar.gz llvm-94a622af4c91df2ad3f471c8896b302ddb865065.tar.bz2 |
The srem -> urem transform is not safe for any divisor that's not a power of two.
E.g. -5 % 5 is 0 with srem and 1 with urem.
Also addresses Frits van Bommel's comments.
llvm-svn: 120049
Diffstat (limited to 'clang/lib/Basic/FileSystemStatCache.cpp')
0 files changed, 0 insertions, 0 deletions