diff options
| author | Craig Topper <craig.topper@gmail.com> | 2014-11-01 22:25:23 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@gmail.com> | 2014-11-01 22:25:23 +0000 |
| commit | 3ca55d9c414541026dfea39bff809fc65e94cc87 (patch) | |
| tree | a0bad46f14c2ea799857e69701185e5f7c2e5e83 /llvm/test/Transforms/LoopVectorize/gcc-examples.ll | |
| parent | 3411c3ea539b20d6cac57efe94a2f29baef54cfe (diff) | |
| download | bcm5719-llvm-3ca55d9c414541026dfea39bff809fc65e94cc87.tar.gz bcm5719-llvm-3ca55d9c414541026dfea39bff809fc65e94cc87.zip | |
Avoid undefined behavior in the x86 lzcnt header file by explicitly checking for 0 before calling __builtin_clz. Without this the optimizers may take advantage of the undefined behavior and produce incorrect results. LLVM itself still needs to be taught to merge the zero check into the llvm.ctlz with defined zero behavior.
llvm-svn: 221064
Diffstat (limited to 'llvm/test/Transforms/LoopVectorize/gcc-examples.ll')
0 files changed, 0 insertions, 0 deletions

