diff options
author | Joerg Sonnenberger <joerg@bec.de> | 2019-10-13 22:33:46 +0000 |
---|---|---|
committer | Joerg Sonnenberger <joerg@bec.de> | 2019-10-13 22:33:46 +0000 |
commit | 529f4ed401ea9761461fb42b1efa552c320c40fb (patch) | |
tree | 2d97732ca35e404a576dd951125107f6e1cb9d07 /llvm/lib/CodeGen/SelectionDAG/FastISel.cpp | |
parent | f79716774a037d5c9ab41497227394994a5346a7 (diff) | |
download | bcm5719-llvm-529f4ed401ea9761461fb42b1efa552c320c40fb.tar.gz bcm5719-llvm-529f4ed401ea9761461fb42b1efa552c320c40fb.zip |
Improve __builtin_constant_p lowering
__builtin_constant_p used to be short-cut evaluated to false when
building with -O0. This is undesirable as it means that constant folding
in the front-end can give different results than folding in the back-end.
It can also create conditional branches on constant conditions that don't
get folded away. With the pending improvements to the llvm.is.constant
handling on the LLVM side, the short-cut is no longer useful.
Adjust various codegen tests to not depend on the short-cut or the
backend optimisations.
Differential Revision: https://reviews.llvm.org/D67638
llvm-svn: 374742
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/FastISel.cpp')
0 files changed, 0 insertions, 0 deletions