llvm-6502/include/llvm/Target
Hal Finkel 807111a8f4 [DAGCombine] Remove SIGN_EXTEND-related inf-loop
The patch's author points out that, despite the function's documentation,
getSetCCResultType is only used to get the SETCC result type (with one
here-removed problematic exception). In one case, getSetCCResultType was being
used to get the predicate type to use for a SELECT node, and then
SIGN_EXTENDing (or truncating) to get the input predicate to match that type.
Unfortunately, this was happening inside visitSIGN_EXTEND, and creating new
SIGN_EXTEND nodes was causing an infinite loop. In addition, this behavior was
wrong if a target was not using ZeroOrNegativeOneBooleanContent. Lastly, the
extension/truncation seems unnecessary here: SELECT is defined as:

  Select(COND, TRUEVAL, FALSEVAL). If the type of the boolean COND is not i1
  then the high bits must conform to getBooleanContents.

So here we remove this use of getSetCCResultType and update
getSetCCResultType's documentation to reflect its actual uses.

Patch by deadal nix!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219141 91177308-0d34-0410-b5e6-96231b3b80d8
2014-10-06 20:19:47 +00:00
..
CostTable.h
Target.td
TargetCallingConv.h
TargetCallingConv.td [mips] Add CCValAssign::[ASZ]ExtUpper and CCPromoteToUpperBitsInType and handle struct's correctly on big-endian N32/N64 return values. 2014-09-25 12:15:05 +00:00
TargetFrameLowering.h
TargetInstrInfo.h Fix a lot of confusion around inserting nops on empty functions. 2014-09-15 18:32:58 +00:00
TargetIntrinsicInfo.h
TargetItinerary.td
TargetLibraryInfo.h PR21145: Teach LLVM about C++14 sized deallocation functions. 2014-10-03 20:17:06 +00:00
TargetLowering.h [DAGCombine] Remove SIGN_EXTEND-related inf-loop 2014-10-06 20:19:47 +00:00
TargetLoweringObjectFile.h
TargetMachine.h Target: Fix build breakage. 2014-09-26 02:57:05 +00:00
TargetOpcodes.h
TargetOptions.h
TargetRegisterInfo.h Revert 202433 - Provide a target override for the latest regalloc heuristic 2014-10-03 12:20:53 +00:00
TargetSchedule.td
TargetSelectionDAG.td Add SDAG TableGen definitions for BR_CC 2014-09-25 23:34:18 +00:00
TargetSelectionDAGInfo.h
TargetSubtargetInfo.h Remove resetSubtargetFeatures as it is unused. 2014-09-03 20:36:31 +00:00