llvm-project/llvm/lib
Sanjay Patel 0cf0be993c [InstCombine] fix operands of shouldChangeType() for casted phi transform
This is a bug noted in the recent D72733 and seen
in the similar transform just above the changed source code.

I added tests with illegal types and zexts to show the bug -
we could transform legal phi ops to illegal, etc. I did not add
tests with trunc because we won't see any diffs on those patterns.
That is because InstCombiner::SliceUpIllegalIntegerPHI() appears to
do those transforms independently of datalayout. It can also create
more casts than are present in existing code.

There are some existing regression tests that do not include a
datalayout that would be altered by this fix. I assumed that the
lack of a datalayout in those regression files is an oversight, so
I added the minimal layout (make i32 legal) necessary to preserve
behavior on those tests.

Differential Revision: https://reviews.llvm.org/D73907
2020-02-04 07:45:48 -05:00
..
Analysis [ValueTracking] Let isGuaranteedToBeUndefOrPoison look into operands of icmp 2020-02-04 17:16:32 +09:00
AsmParser Revert "[SVE] Fix bug in simplification of scalable vector instructions" 2020-02-03 11:12:09 -08:00
BinaryFormat DWARFDebugLine.cpp: Format unknown line number standard opcodes 2020-01-15 10:45:50 -05:00
Bitcode Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
Bitstream [Bitstream] Delete skipAbbreviatedField which duplicates readAbbreviatedField 2019-12-25 18:55:02 -08:00
CodeGen [NFC] Fix some spelling mistakes to test pushing to GH. 2020-02-04 11:07:31 +00:00
DWARFLinker Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
DebugInfo DebugInfo: Allow dumping macinfo and macinfo.dwo from the same file 2020-01-31 12:47:50 -08:00
Demangle Revert "Add some missing includes to MicrosoftDemangle.cpp (PR44217)" 2019-12-04 11:10:07 -08:00
ExecutionEngine Make StringRef's std::string conversion operator explicit 2020-02-01 15:43:45 +01:00
Frontend Revert "[OpenMP][OMPIRBuilder] Add Directives (master and critical) to OMPBuilder." 2020-02-03 08:59:14 -06:00
FuzzMutate Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
Fuzzer
IR [NFC] Factor out function to detect if an attribute has an argument. 2020-02-03 22:27:24 +01:00
IRReader [cmake] Explicitly mark libraries defined in lib/ as "Component Libraries" 2019-11-21 10:48:08 -08:00
LTO [llvm] Replace SmallStr.str().str() with std::string conversion operator. 2020-01-29 21:16:46 -08:00
LineEditor Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
Linker [NFC] Fixes -Wrange-loop-analysis warnings 2020-01-01 20:01:37 +01:00
MC [AIX] Don't use a zero fill with a second parameter 2020-02-03 15:16:08 -05:00
MCA Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
Object [XCOFF][AIX] Support basic relocation type on AIX 2020-01-30 15:59:09 +00:00
ObjectYAML [yaml2obj/obj2yaml] - Add support for the SHT_LLVM_CALL_GRAPH_PROFILE section. 2020-02-04 15:13:20 +03:00
Option Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
Passes Build assume from call 2020-02-02 19:43:36 +01:00
ProfileData [llvm] Replace SmallStr.str().str() with std::string conversion operator. 2020-01-29 21:16:46 -08:00
Remarks Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
Support [ARM] Make ARM::ArchExtKind use 64-bit underlying type, NFCI 2020-02-04 11:24:18 +00:00
TableGen A bunch more implicit string conversions that my Clang didn't detect. 2020-01-29 00:30:16 +01:00
Target [ARM] Make ARM::ArchExtKind use 64-bit underlying type, NFCI 2020-02-04 11:24:18 +00:00
Testing
TextAPI Another round of GCC5 fixes. 2020-01-29 02:09:24 +01:00
ToolDrivers [llvm] Replace SmallStr.str().str() with std::string conversion operator. 2020-01-29 21:16:46 -08:00
Transforms [InstCombine] fix operands of shouldChangeType() for casted phi transform 2020-02-04 07:45:48 -05:00
WindowsManifest Revert "Temporarily revert "build: avoid hardcoding the libxml2 library name"" 2019-12-03 09:27:14 -08:00
XRay Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
CMakeLists.txt [Dsymutil][Debuginfo][NFC] Reland: Refactor dsymutil to separate DWARF optimizing part. #2. 2020-01-08 14:15:31 +03:00
LLVMBuild.txt [Dsymutil][Debuginfo][NFC] Reland: Refactor dsymutil to separate DWARF optimizing part. #2. 2020-01-08 14:15:31 +03:00