aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/StackProtector.cpp
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2009-01-27 22:34:30 +0000
committerTanya Lattner <tonic@nondot.org>2009-01-27 22:34:30 +0000
commitfbb018133766f9af2195b802be8fda780e5c2cec (patch)
tree40859748012f32f176525df03e56ab8468a2af2d /lib/CodeGen/StackProtector.cpp
parentcdc2f05f72ca7a66ca6b33e2817b03ad14083c13 (diff)
Merge from mainline.
Don't create ISD::FNEG nodes after legalize if they aren't legal. Simplify x+0 to x in unsafe-fp-math mode. This avoids a bunch of redundant work in many cases, because in unsafe-fp-math mode, ISD::FADD with a constant is considered free to negate, so the DAGCombiner often negates x+0 to -0-x thinking it's free, when in reality the end result is -x, which is more expensive than x. Also, combine x*0 to 0. This fixes PR3374. git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_25@63144 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/StackProtector.cpp')
0 files changed, 0 insertions, 0 deletions