aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/ModuleBuilder.cpp
diff options
context:
space:
mode:
authorFiona Glaser <escha@apple.com>2016-03-13 05:36:15 +0000
committerFiona Glaser <escha@apple.com>2016-03-13 05:36:15 +0000
commit2e5c0c2858ca40fdb3cc375955a04ff5a35ee9f6 (patch)
tree4ff67bb06c85258028930c997f68ecce1f138c86 /clang/lib/CodeGen/ModuleBuilder.cpp
parent614be596926564664f1e01cfd33372bdbc69c5d8 (diff)
downloadllvm-2e5c0c2858ca40fdb3cc375955a04ff5a35ee9f6.zip
llvm-2e5c0c2858ca40fdb3cc375955a04ff5a35ee9f6.tar.gz
llvm-2e5c0c2858ca40fdb3cc375955a04ff5a35ee9f6.tar.bz2
ConstantFoldInstruction: avoid wasted calls to ConstantFoldConstantExpression
Check to see if all operands are constant before calling simplify on them so that we don't perform wasted simplifications. llvm-svn: 263374
Diffstat (limited to 'clang/lib/CodeGen/ModuleBuilder.cpp')
0 files changed, 0 insertions, 0 deletions