OSDN Git Service

Though the previous xform applies to literally dozens (hundreds?) of variables
authorChris Lattner <sabre@nondot.org>
Sun, 12 Dec 2004 06:03:06 +0000 (06:03 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 12 Dec 2004 06:03:06 +0000 (06:03 +0000)
commit077f1a82923fee977569df5f2bd4ba914e6ee22e
treeeff177fb8cb93cfc9ae40ea5ef837d9ac60fed1e
parent6a8c46cde3bb3a982a8a928ebae8d21d0aba32a1
Though the previous xform applies to literally dozens (hundreds?) of variables
in SPEC, the subsequent optimziations that we are after don't play with
with FP values, so disable this xform for them.  Really we just don't want
stuff like:

double G;   (always 0 or 412312.312)
  = G;

turning into:

bool G_b;
  = G_b ? 412312.312 : 0;

We'd rather just do the load.

-Chris

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18819 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/GlobalOpt.cpp