]> granicus.if.org Git - llvm/commit
Lower widenable_conditions in CGP
authorPhilip Reames <listmail@philipreames.com>
Thu, 31 Jan 2019 18:45:46 +0000 (18:45 +0000)
committerPhilip Reames <listmail@philipreames.com>
Thu, 31 Jan 2019 18:45:46 +0000 (18:45 +0000)
commit3396a8da4a7eb6087934ed95f1585558dd12f08c
treea88374de6dab74fba104effc1df61bcaa9c7f35a
parent1efa4deccde60526344842497fbe803b4ce5bdd0
Lower widenable_conditions in CGP

This ensures that if we make it to the backend w/o lowering widenable_conditions first, that we generate correct code. Doing it in CGP - instead of isel - let's us fold control flow before hitting block local instruction selection.

Differential Revision: https://reviews.llvm.org/D57473

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@352779 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenPrepare.cpp
test/Transforms/CodeGenPrepare/widenable-condition.ll [new file with mode: 0644]