summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaInit.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-05-19 20:18:56 +0000
committerChris Lattner <sabre@nondot.org>2008-05-19 20:18:56 +0000
commit5920a78034e9b99a621b335293fd0095e1a3e520 (patch)
tree000bf4a309fec058c2bf34e483356cbb0d5ca769 /clang/lib/Sema/SemaInit.cpp
parent541268086ac59615886075e7c68e37335b23d0dc (diff)
downloadbcm5719-llvm-5920a78034e9b99a621b335293fd0095e1a3e520.tar.gz
bcm5719-llvm-5920a78034e9b99a621b335293fd0095e1a3e520.zip
Fold FP comparisons where one operand is converted from an integer
type and the other operand is a constant into integer comparisons. This happens surprisingly frequently (e.g. 10 times in 471.omnetpp), which are things like this: %tmp8283 = sitofp i32 %tmp82 to double %tmp1013 = fcmp ult double %tmp8283, 0.0 Clearly comparing tmp82 against i32 0 is cheaper here. this also triggers 8 times in gobmk, including this one: %tmp375376 = sitofp i32 %tmp375 to double %tmp377 = fcmp ogt double %tmp375376, 8.150000e+01 which is comparing an integer against 81.5 :). llvm-svn: 51268
Diffstat (limited to 'clang/lib/Sema/SemaInit.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud