[PATCH] Revert 221429 and fix bug in TargetLowering::SimplifyDemandedBits
gil.rapaport at intel.com
Tue Jan 27 00:01:02 PST 2015
I ran lnt w/ spec2006 and didn't witness any related performance degradations. However if you could also run it (for more coverage if you have other externals, and to double-check me) that would be great.
One thing I did notice is that this specific sext-in-reg may be optimized away if left alone: DAGCombiner checks whether the value was already sign extended and drops it (this actually happens in vselect-avx.ll). This suggests that at least on some conditions this X86 optimization is redundant all together, but this requires thorough checking beyond this bug fix.
More information about the llvm-commits