Displaying 2 results from an estimated 2 matches for "isfpimmlegal".
2013 Mar 06
1
[LLVMdev] TargetLowering::isIntImmLegal(...)
The thing I wanted for mips 16 for large literals does not seem to exist
right now.
They have MipsTargetLowering::isFPImmLegal(const APFloat &Imm, EVT VT)
but not the same thing for integer literals.
For Mips16, to materialize a 32 bit literal using instructions is
expensive, both in terms of the number of registers and the number of
instructions.
You always want to just do a load of the constant from the local te...
2012 Feb 10
1
[LLVMdev] Prevent DAG combiner from changing "store ConstFP, addr" to integer store
This code lives in DAGCombiner.cpp:
-------------
// Turn 'store float 1.0, Ptr' -> 'store int 0x12345678, Ptr'
if (ConstantFPSDNode *CFP = dyn_cast<ConstantFPSDNode>(Value)) {
// NOTE: If the original store is volatile, this transform must not
increase
// the number of stores. For example, on x86-32 an f64 can be stored
in one
// processor operation but