summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-04-16 23:15:35 +0000
committerChris Lattner <sabre@nondot.org>2011-04-16 23:15:35 +0000
commit56784f9de61fa607c03a56c3f774641a1189786d (patch)
tree7c0e7a0522b6b24707a9a50dc7fbe9f087a113ee /llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
parentd6d4f987b487109878cf961d933caee925bc3036 (diff)
downloadbcm5719-llvm-56784f9de61fa607c03a56c3f774641a1189786d.tar.gz
bcm5719-llvm-56784f9de61fa607c03a56c3f774641a1189786d.zip
fix rdar://9289603 - clang should fold trivial ?: for enums as well as integer constants into select at -O0
by making the isCheapEnoughToEvaluateUnconditionally predicate handle anything that folds to a constant. In particular, we now fold enums. llvm-svn: 129649
Diffstat (limited to 'llvm/lib/CodeGen/TwoAddressInstructionPass.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud