[Constant Hoisting] Make the constant materialization cost operand dependent

Press ? to show keyboard shortcuts.
Committed
ributzkaMar 20 2014, 11:04 PM
Parents
rL204434: [Constant Hoisting] Lazily compute the idom and cache the result.
Branches
Unknown
Tags
Unknown
Description

[Constant Hoisting] Make the constant materialization cost operand dependent

Extend the target hook to take also the operand index into account when
calculating the cost of the constant materialization.

Related to rdar://problem/16381500

rL204435

llvm/trunk/include/llvm/Analysis/TargetTransformInfo.h

Loading...

llvm/trunk/lib/Analysis/TargetTransformInfo.cpp

Loading...

llvm/trunk/lib/Target/X86/X86TargetTransformInfo.cpp

Loading...

llvm/trunk/lib/Transforms/Scalar/ConstantHoisting.cpp

Loading...

llvm/trunk/test/CodeGen/X86/lsr-interesting-step.ll

Loading...

llvm/trunk/test/CodeGen/X86/negate-add-zero.ll

Loading...

llvm/trunk/test/Transforms/ConstantHoisting/X86/phi.ll

Loading...

Add Comment