Craig Topper 5ff5cf8e05 [X86] Use APInt::isSignedIntN instead of isIntN for 64-bit ANDs in X86DAGToDAGISel::IsProfitableToFold
Pretty sure we meant to be checking signed 32 immediates here
rather than unsigned 32 bit. I suspect I messed this up because
in MathExtras.h we have isIntN and isUIntN so isIntN differs in
signedness depending on whether you're using APInt or plain integers.

This fixes a case where we didn't fold a constant created
by shrinkAndImmediate. Since shrinkAndImmediate doesn't topologically
sort constants it creates, we can fail to convert the Constant
to a TargetConstant. This leads to very strange behavior later.

Fixes PR48458.
2020-12-09 13:39:07 -08:00
..
2020-07-07 10:13:40 +08:00
2020-06-25 10:06:27 +08:00
2020-07-20 10:23:09 -04:00
2020-12-08 15:36:47 +00:00
2020-06-21 15:54:17 +01:00
2020-10-15 17:14:55 -04:00
2020-03-24 23:04:58 +09:00
2020-02-08 15:23:40 +00:00
2020-02-08 15:23:40 +00:00
2020-01-06 10:50:26 +00:00
2020-11-26 12:06:44 +00:00
2020-10-27 16:45:46 +00:00
2020-04-09 10:36:00 +01:00
2020-07-23 20:56:19 +02:00
2020-07-23 20:56:19 +02:00
2020-12-08 15:36:47 +00:00
2020-12-08 10:28:26 +00:00
2020-11-09 15:04:57 +00:00